components/vim/vim72-patches/7.2.014
changeset 198 172fc01ce997
equal deleted inserted replaced
197:fd801ec0737c 198:172fc01ce997
       
     1 To: [email protected]
       
     2 Subject: Patch 7.2.014
       
     3 Fcc: outbox
       
     4 From: Bram Moolenaar <[email protected]>
       
     5 Mime-Version: 1.0
       
     6 Content-Type: text/plain; charset=ISO-8859-1
       
     7 Content-Transfer-Encoding: 8bit
       
     8 ------------
       
     9 
       
    10 Patch 7.2.014
       
    11 Problem:    synstack() doesn't work in an emptly line.
       
    12 Solution:   Accept column zero as a valid position.
       
    13 Files:	    src/eval.c
       
    14 
       
    15 
       
    16 *** ../vim-7.2.013/src/eval.c	Sun Sep  7 13:54:31 2008
       
    17 --- src/eval.c	Sun Sep  7 13:50:38 2008
       
    18 ***************
       
    19 *** 16667,16673 ****
       
    20       col = get_tv_number(&argvars[1]) - 1;	/* -1 on type error */
       
    21   
       
    22       if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count
       
    23 ! 	    && col >= 0 && col < (long)STRLEN(ml_get(lnum))
       
    24   	    && rettv_list_alloc(rettv) != FAIL)
       
    25       {
       
    26   	(void)syn_get_id(curwin, lnum, (colnr_T)col, FALSE, NULL, TRUE);
       
    27 --- 16667,16673 ----
       
    28       col = get_tv_number(&argvars[1]) - 1;	/* -1 on type error */
       
    29   
       
    30       if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count
       
    31 ! 	    && col >= 0 && (col == 0 || col < (long)STRLEN(ml_get(lnum)))
       
    32   	    && rettv_list_alloc(rettv) != FAIL)
       
    33       {
       
    34   	(void)syn_get_id(curwin, lnum, (colnr_T)col, FALSE, NULL, TRUE);
       
    35 *** ../vim-7.2.013/src/version.c	Sun Sep  7 21:47:51 2008
       
    36 --- src/version.c	Wed Sep 10 15:36:52 2008
       
    37 ***************
       
    38 *** 678,679 ****
       
    39 --- 678,681 ----
       
    40   {   /* Add new patch number below this line */
       
    41 + /**/
       
    42 +     14,
       
    43   /**/
       
    44 
       
    45 -- 
       
    46 Everybody lies, but it doesn't matter since nobody listens.
       
    47                                 -- Lieberman's Law
       
    48 
       
    49  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
       
    50 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
       
    51 \\\        download, build and distribute -- http://www.A-A-P.org        ///
       
    52  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///