gedit r6602 - in trunk: . plugins/modelines
- From: mterry svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6602 - in trunk: . plugins/modelines
- Date: Sun, 16 Nov 2008 17:28:03 +0000 (UTC)
Author: mterry
Date: Sun Nov 16 17:28:03 2008
New Revision: 6602
URL: http://svn.gnome.org/viewvc/gedit?rev=6602&view=rev
Log:
Look at second line as well as first for emacs modeline. Fixes bug #561074.
Modified:
trunk/ChangeLog
trunk/plugins/modelines/modeline-parser.c
Modified: trunk/plugins/modelines/modeline-parser.c
==============================================================================
--- trunk/plugins/modelines/modeline-parser.c (original)
+++ trunk/plugins/modelines/modeline-parser.c Sun Nov 16 17:28:03 2008
@@ -337,7 +337,7 @@
while (*s != ':') s++;
s = parse_vim_modeline (s + 1, options);
}
- else if (line_number == 0 && strncmp (s, "-*-", 3) == 0)
+ else if (line_number < 2 && strncmp (s, "-*-", 3) == 0)
{
gedit_debug_message (DEBUG_PLUGINS, "Emacs modeline on line %d", line_number);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]