diff src/eval.c @ 2027:4c41f0da2a2e v7.2.324

updated for version 7.2-324
author vimboss
date Thu, 31 Dec 2009 12:18:30 +0000
parents 451bed7e9572
children 5c6fa259c923
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -15542,7 +15542,8 @@ f_setpos(argvars, rettv)
     {
 	if (list2fpos(&argvars[1], &pos, &fnum) == OK)
 	{
-	    --pos.col;
+	    if (--pos.col < 0)
+		pos.col = 0;
 	    if (name[0] == '.' && name[1] == NUL)
 	    {
 		/* set cursor */