From: Bram Moolenaar Date: Wed, 26 Jun 2013 18:04:35 +0000 (+0200) Subject: updated for version 7.3.1249 X-Git-Tag: v7.3.1249 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c14621eafb1e14cd41a77c69893b417abcf60e1a;p=vim updated for version 7.3.1249 Problem: Modeline not recognized when using "Vim" instead of "vim". Solution: Also accept "Vim". --- diff --git a/src/buffer.c b/src/buffer.c index ee5d33cd4..af17b63ba 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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; diff --git a/src/version.c b/src/version.c index 3a48c0fec..0d851206f 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1249, /**/ 1248, /**/