Mercurial > vim
changeset 2027:4c41f0da2a2e v7.2.324
updated for version 7.2-324
author | vimboss |
---|---|
date | Thu, 31 Dec 2009 12:18:30 +0000 |
parents | d3571ca62cd6 |
children | be1d64f82db2 |
files | src/eval.c src/misc2.c src/version.c |
diffstat | 3 files changed, 6 insertions(+), 1 deletions(-) [+] |
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 */