summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-29 22:01:03 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-29 22:01:03 +0000
commit06a89a51592d300396f2f846d1983df5029931be (patch)
tree6a0d97b40132d0eabb19b8419c190b1a10fb64bf /src/edit.c
parentd8fc5c0b999204f47efd7702502b41ead11948a4 (diff)
updated for version 7.0f05
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index 296e91545c..90b3b69719 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -925,6 +925,15 @@ doESCkey:
if (echeck_abbr(Ctrl_O + ABBR_OFF))
break;
ins_ctrl_o();
+
+#ifdef FEAT_VIRTUALEDIT
+ /* don't move the cursor left when 'virtualedit' has "onemore". */
+ if (ve_flags & VE_ONEMORE)
+ {
+ ins_at_eol = FALSE;
+ nomove = TRUE;
+ }
+#endif
count = 0;
goto doESCkey;