commit | a5fac54aead319a3a47849df0f2dc1fc59c5dd11 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Oct 12 20:58:49 2005 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Oct 12 20:58:49 2005 +0000 |
tree | d4614c84f224b4525357ffaa911c239ee4ea784b | |
parent | 61036991abe29d4b701cc442d1630f012cd20b21 [diff] [blame] |
updated for version 7.0157
diff --git a/src/ops.c b/src/ops.c index dc0e52b..a88c907 100644 --- a/src/ops.c +++ b/src/ops.c
@@ -3724,10 +3724,13 @@ && curwin->w_cursor.col > 0 && !(restart_edit || (State & INSERT))) { - --curwin->w_cursor.col; +#ifdef FEAT_VIRTUALEDIT + col = curwin->w_cursor.col; +#endif + dec_cursor(); #ifdef FEAT_VIRTUALEDIT if (ve_flags == VE_ALL) - ++curwin->w_cursor.coladd; + curwin->w_cursor.coladd = col - curwin->w_cursor.col; #endif } }