0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.3.1249

Problem:    Modeline not recognized when using "Vim" instead of "vim".
Solution:   Also accept "Vim".
This commit is contained in:
Bram Moolenaar 2013-06-26 20:04:35 +02:00
parent abab85a499
commit c14621eafb
2 changed files with 4 additions and 1 deletions

View 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;

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1249,
/**/
1248,
/**/