diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-08 22:27:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-08 22:27:55 +0200 |
commit | d04b7507fde8bb7e3103ce53f2156c798b5e5245 (patch) | |
tree | a452897549e1c7bde0a476bbc3aa17653f577cf1 /src/eval.c | |
parent | b0b508808f33934d30be6a46c4e8aa9a0ad2d614 (diff) |
Make synstack() work on the character just after the end of the line.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index a415849e82..2944758240 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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); |