Mercurial > vim
changeset 1716:0f109c56b521 v7.2.014
updated for version 7.2-014
author | vimboss |
---|---|
date | Wed, 10 Sep 2008 13:39:10 +0000 |
parents | afb64d9f5b8e |
children | e03cb9499b83 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -16667,7 +16667,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 < (long)STRLEN(ml_get(lnum)) + && col >= 0 && (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);