0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

Make synstack() work on the character just after the end of the line.

This commit is contained in:
Bram Moolenaar
2010-07-08 22:27:55 +02:00
parent b0b508808f
commit d04b7507fd
7 changed files with 184 additions and 160 deletions

View File

@@ -17064,7 +17064,7 @@ f_synstack(argvars, rettv)
col = get_tv_number(&argvars[1]) - 1; /* -1 on type error */
if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count
&& col >= 0 && (col == 0 || col < (long)STRLEN(ml_get(lnum)))
&& col >= 0 && col <= (long)STRLEN(ml_get(lnum))
&& rettv_list_alloc(rettv) != FAIL)
{
(void)syn_get_id(curwin, lnum, (colnr_T)col, FALSE, NULL, TRUE);