diff src/eval.c @ 1716:0f109c56b521 v7.2.014

updated for version 7.2-014
author vimboss
date Wed, 10 Sep 2008 13:39:10 +0000
parents 7781fcd2b74f
children e9624acb93a7
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);