Problem: Modeline not recognized when using "Vim" instead of "vim".
Solution: Also accept "Vim".
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;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1249,
/**/
1248,
/**/