Karsten Hopp 393d41
To: vim_dev@googlegroups.com
Karsten Hopp 393d41
Subject: Patch 7.3.1249
Karsten Hopp 393d41
Fcc: outbox
Karsten Hopp 393d41
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 393d41
Mime-Version: 1.0
Karsten Hopp 393d41
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 393d41
Content-Transfer-Encoding: 8bit
Karsten Hopp 393d41
------------
Karsten Hopp 393d41
Karsten Hopp 393d41
Patch 7.3.1249
Karsten Hopp 393d41
Problem:    Modeline not recognized when using "Vim" instead of "vim".
Karsten Hopp 393d41
Solution:   Also accept "Vim".
Karsten Hopp 393d41
Files:	    src/buffer.c
Karsten Hopp 393d41
Karsten Hopp 393d41
Karsten Hopp 393d41
*** ../vim-7.3.1248/src/buffer.c	2013-06-16 17:32:33.000000000 +0200
Karsten Hopp 393d41
--- src/buffer.c	2013-06-26 19:52:58.000000000 +0200
Karsten Hopp 393d41
***************
Karsten Hopp 393d41
*** 5096,5102 ****
Karsten Hopp 393d41
  	    if ((prev != -1 && STRNCMP(s, "ex:", (size_t)3) == 0)
Karsten Hopp 393d41
  		    || STRNCMP(s, "vi:", (size_t)3) == 0)
Karsten Hopp 393d41
  		break;
Karsten Hopp 393d41
! 	    if (STRNCMP(s, "vim", 3) == 0)
Karsten Hopp 393d41
  	    {
Karsten Hopp 393d41
  		if (s[3] == '<' || s[3] == '=' || s[3] == '>')
Karsten Hopp 393d41
  		    e = s + 4;
Karsten Hopp 393d41
--- 5096,5103 ----
Karsten Hopp 393d41
  	    if ((prev != -1 && STRNCMP(s, "ex:", (size_t)3) == 0)
Karsten Hopp 393d41
  		    || STRNCMP(s, "vi:", (size_t)3) == 0)
Karsten Hopp 393d41
  		break;
Karsten Hopp 393d41
! 	    /* Accept both "vim" and "Vim". */
Karsten Hopp 393d41
! 	    if ((s[0] == 'v' || s[0] == 'V') && s[1] == 'i' && s[2] == 'm')
Karsten Hopp 393d41
  	    {
Karsten Hopp 393d41
  		if (s[3] == '<' || s[3] == '=' || s[3] == '>')
Karsten Hopp 393d41
  		    e = s + 4;
Karsten Hopp 393d41
*** ../vim-7.3.1248/src/version.c	2013-06-26 19:17:58.000000000 +0200
Karsten Hopp 393d41
--- src/version.c	2013-06-26 19:53:37.000000000 +0200
Karsten Hopp 393d41
***************
Karsten Hopp 393d41
*** 730,731 ****
Karsten Hopp 393d41
--- 730,733 ----
Karsten Hopp 393d41
  {   /* Add new patch number below this line */
Karsten Hopp 393d41
+ /**/
Karsten Hopp 393d41
+     1249,
Karsten Hopp 393d41
  /**/
Karsten Hopp 393d41
Karsten Hopp 393d41
-- 
Karsten Hopp 393d41
CONCORDE: Message for you, sir.
Karsten Hopp 393d41
   He falls forward revealing the arrow with the note.
Karsten Hopp 393d41
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 393d41
Karsten Hopp 393d41
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 393d41
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 393d41
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 393d41
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///