From: Bram Moolenaar Date: Thu, 31 Dec 2009 12:18:30 +0000 (+0000) Subject: updated for version 7.2-324 X-Git-Tag: v7.2.324 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=742d1ecd17422afaad75acc016392073c25ef4f6;p=vim updated for version 7.2-324 --- diff --git a/src/eval.c b/src/eval.c index 0ce6ff14c..6bd2aa72e 100644 --- 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 index e157aae9e..949d7e21a 100644 --- 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 index 36ff3b6f5..ed0058d35 100644 --- a/src/version.c +++ b/src/version.c @@ -681,6 +681,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 324, /**/ 323, /**/