]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1249 v7.3.1249
authorBram Moolenaar <Bram@vim.org>
Wed, 26 Jun 2013 18:04:35 +0000 (20:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 26 Jun 2013 18:04:35 +0000 (20:04 +0200)
Problem:    Modeline not recognized when using "Vim" instead of "vim".
Solution:   Also accept "Vim".

src/buffer.c
src/version.c

index ee5d33cd4041dbec281748d437504394a87e0561..af17b63bab032fa158ad0d0b39204c4690d6dbcb 100644 (file)
@@ -5096,7 +5096,8 @@ chk_modeline(lnum, flags)
            if ((prev != -1 && STRNCMP(s, "ex:", (size_t)3) == 0)
                    || STRNCMP(s, "vi:", (size_t)3) == 0)
                break;
-           if (STRNCMP(s, "vim", 3) == 0)
+           /* Accept both "vim" and "Vim". */
+           if ((s[0] == 'v' || s[0] == 'V') && s[1] == 'i' && s[2] == 'm')
            {
                if (s[3] == '<' || s[3] == '=' || s[3] == '>')
                    e = s + 4;
index 3a48c0fec34f5c81069a0e5a77d3e6db84a56808..0d851206fe565d3f8a9e55e9122c4d5e23f107fb 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1249,
 /**/
     1248,
 /**/