components/vim/vim72-patches/7.2.293
changeset 379 c6a17bba1da3
parent 378 f0b61ed1d10d
child 380 e92b3b4a1c66
equal deleted inserted replaced
378:f0b61ed1d10d 379:c6a17bba1da3
     1 To: [email protected]
       
     2 Subject: Patch 7.2.293
       
     3 Fcc: outbox
       
     4 From: Bram Moolenaar <[email protected]>
       
     5 Mime-Version: 1.0
       
     6 Content-Type: text/plain; charset=UTF-8
       
     7 Content-Transfer-Encoding: 8bit
       
     8 ------------
       
     9 
       
    10 Patch 7.2.293
       
    11 Problem:    When setting 'comments' option it may be used in a wrong way. 
       
    12 Solution:   Don't increment after skipping over digets. (Yukihiro Nakadaira)
       
    13 Files:	    src/misc1.c
       
    14 
       
    15 
       
    16 *** ../vim-7.2.292/src/misc1.c	2009-11-03 18:46:53.000000000 +0100
       
    17 --- src/misc1.c	2009-11-11 17:27:38.000000000 +0100
       
    18 ***************
       
    19 *** 1026,1037 ****
       
    20   		    int		c = 0;
       
    21   		    int		off = 0;
       
    22   
       
    23 ! 		    for (p = lead_flags; *p && *p != ':'; ++p)
       
    24   		    {
       
    25   			if (*p == COM_RIGHT || *p == COM_LEFT)
       
    26 ! 			    c = *p;
       
    27   			else if (VIM_ISDIGIT(*p) || *p == '-')
       
    28   			    off = getdigits(&p);
       
    29   		    }
       
    30   		    if (c == COM_RIGHT)    /* right adjusted leader */
       
    31   		    {
       
    32 --- 1026,1039 ----
       
    33   		    int		c = 0;
       
    34   		    int		off = 0;
       
    35   
       
    36 ! 		    for (p = lead_flags; *p != NUL && *p != ':'; )
       
    37   		    {
       
    38   			if (*p == COM_RIGHT || *p == COM_LEFT)
       
    39 ! 			    c = *p++;
       
    40   			else if (VIM_ISDIGIT(*p) || *p == '-')
       
    41   			    off = getdigits(&p);
       
    42 + 			else
       
    43 + 			    ++p;
       
    44   		    }
       
    45   		    if (c == COM_RIGHT)    /* right adjusted leader */
       
    46   		    {
       
    47 *** ../vim-7.2.292/src/version.c	2009-11-11 17:22:30.000000000 +0100
       
    48 --- src/version.c	2009-11-11 17:29:24.000000000 +0100
       
    49 ***************
       
    50 *** 683,684 ****
       
    51 --- 683,686 ----
       
    52   {   /* Add new patch number below this line */
       
    53 + /**/
       
    54 +     293,
       
    55   /**/
       
    56 
       
    57 -- 
       
    58 SOLDIER: What?  Ridden on a horse?
       
    59 ARTHUR:  Yes!
       
    60 SOLDIER: You're using coconuts!
       
    61                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
       
    62 
       
    63  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
       
    64 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
       
    65 \\\        download, build and distribute -- http://www.A-A-P.org        ///
       
    66  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///