Karsten Hopp 058a33
To: vim-dev@vim.org
Karsten Hopp 058a33
Subject: Patch 7.2.293
Karsten Hopp 058a33
Fcc: outbox
Karsten Hopp 058a33
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 058a33
Mime-Version: 1.0
Karsten Hopp 058a33
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 058a33
Content-Transfer-Encoding: 8bit
Karsten Hopp 058a33
------------
Karsten Hopp 058a33
Karsten Hopp 058a33
Patch 7.2.293
Karsten Hopp 058a33
Problem:    When setting 'comments' option it may be used in a wrong way. 
Karsten Hopp 058a33
Solution:   Don't increment after skipping over digets. (Yukihiro Nakadaira)
Karsten Hopp 058a33
Files:	    src/misc1.c
Karsten Hopp 058a33
Karsten Hopp 058a33
Karsten Hopp 058a33
*** ../vim-7.2.292/src/misc1.c	2009-11-03 18:46:53.000000000 +0100
Karsten Hopp 058a33
--- src/misc1.c	2009-11-11 17:27:38.000000000 +0100
Karsten Hopp 058a33
***************
Karsten Hopp 058a33
*** 1026,1037 ****
Karsten Hopp 058a33
  		    int		c = 0;
Karsten Hopp 058a33
  		    int		off = 0;
Karsten Hopp 058a33
  
Karsten Hopp 058a33
! 		    for (p = lead_flags; *p && *p != ':'; ++p)
Karsten Hopp 058a33
  		    {
Karsten Hopp 058a33
  			if (*p == COM_RIGHT || *p == COM_LEFT)
Karsten Hopp 058a33
! 			    c = *p;
Karsten Hopp 058a33
  			else if (VIM_ISDIGIT(*p) || *p == '-')
Karsten Hopp 058a33
  			    off = getdigits(&p);
Karsten Hopp 058a33
  		    }
Karsten Hopp 058a33
  		    if (c == COM_RIGHT)    /* right adjusted leader */
Karsten Hopp 058a33
  		    {
Karsten Hopp 058a33
--- 1026,1039 ----
Karsten Hopp 058a33
  		    int		c = 0;
Karsten Hopp 058a33
  		    int		off = 0;
Karsten Hopp 058a33
  
Karsten Hopp 058a33
! 		    for (p = lead_flags; *p != NUL && *p != ':'; )
Karsten Hopp 058a33
  		    {
Karsten Hopp 058a33
  			if (*p == COM_RIGHT || *p == COM_LEFT)
Karsten Hopp 058a33
! 			    c = *p++;
Karsten Hopp 058a33
  			else if (VIM_ISDIGIT(*p) || *p == '-')
Karsten Hopp 058a33
  			    off = getdigits(&p);
Karsten Hopp 058a33
+ 			else
Karsten Hopp 058a33
+ 			    ++p;
Karsten Hopp 058a33
  		    }
Karsten Hopp 058a33
  		    if (c == COM_RIGHT)    /* right adjusted leader */
Karsten Hopp 058a33
  		    {
Karsten Hopp 058a33
*** ../vim-7.2.292/src/version.c	2009-11-11 17:22:30.000000000 +0100
Karsten Hopp 058a33
--- src/version.c	2009-11-11 17:29:24.000000000 +0100
Karsten Hopp 058a33
***************
Karsten Hopp 058a33
*** 683,684 ****
Karsten Hopp 058a33
--- 683,686 ----
Karsten Hopp 058a33
  {   /* Add new patch number below this line */
Karsten Hopp 058a33
+ /**/
Karsten Hopp 058a33
+     293,
Karsten Hopp 058a33
  /**/
Karsten Hopp 058a33
Karsten Hopp 058a33
-- 
Karsten Hopp 058a33
SOLDIER: What?  Ridden on a horse?
Karsten Hopp 058a33
ARTHUR:  Yes!
Karsten Hopp 058a33
SOLDIER: You're using coconuts!
Karsten Hopp 058a33
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 058a33
Karsten Hopp 058a33
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 058a33
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 058a33
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 058a33
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///