Skip to content

Commit e163ff4

Browse files
committed
updated for version 7.3.1249
Problem: Modeline not recognized when using "Vim" instead of "vim". Solution: Also accept "Vim".
1 parent 52ec1f4 commit e163ff4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/buffer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5096,7 +5096,8 @@ chk_modeline(lnum, flags)
50965096
if ((prev != -1 && STRNCMP(s, "ex:", (size_t)3) == 0)
50975097
|| STRNCMP(s, "vi:", (size_t)3) == 0)
50985098
break;
5099-
if (STRNCMP(s, "vim", 3) == 0)
5099+
/* Accept both "vim" and "Vim". */
5100+
if ((s[0] == 'v' || s[0] == 'V') && s[1] == 'i' && s[2] == 'm')
51005101
{
51015102
if (s[3] == '<' || s[3] == '=' || s[3] == '>')
51025103
e = s + 4;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
1249,
731733
/**/
732734
1248,
733735
/**/

0 commit comments

Comments
 (0)