4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: synstack() doesn't work in an emptly line.
12 Solution: Accept column zero as a valid position.
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
20 col = get_tv_number(&argvars[1]) - 1; /* -1 on type error */
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)
26 (void)syn_get_id(curwin, lnum, (colnr_T)col, FALSE, NULL, TRUE);
28 col = get_tv_number(&argvars[1]) - 1; /* -1 on type error */
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)
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
40 { /* Add new patch number below this line */
46 Everybody lies, but it doesn't matter since nobody listens.
49 /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 ///