# HG changeset patch # User vimboss # Date 1262261910 0 # Node ID 4c41f0da2a2e35b42334d091130440d1b1479e7b # Parent d3571ca62cd6a9138b0aaa4673b09dec78e540e1 updated for version 7.2-324 diff --git a/src/eval.c b/src/eval.c --- 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 */ diff --git a/src/misc2.c b/src/misc2.c --- a/src/misc2.c +++ b/src/misc2.c @@ -528,6 +528,8 @@ check_cursor_col() #endif } } + else if (curwin->w_cursor.col < 0) + curwin->w_cursor.col = 0; #ifdef FEAT_VIRTUALEDIT /* If virtual editing is on, we can leave the cursor on the old position, diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 324, +/**/ 323, /**/ 322,