summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-14 21:42:54 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-14 21:42:54 +0000
commitfd371684fade0f223c8a0286efe1f261c4b8c381 (patch)
treece9b154f9cf2d3f0b2120072f03891521773e5fc /src/ex_docmd.c
parent31c67ef813a8f7059aa1a81b4d5d590d6ee17614 (diff)
downloadvim-git-fd371684fade0f223c8a0286efe1f261c4b8c381.tar.gz
updated for version 7.0038
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 0bcd69e6e..48edb2e74 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -8084,6 +8084,13 @@ ex_normal(eap)
ex_startinsert(eap)
exarg_T *eap;
{
+ if (eap->forceit)
+ {
+ coladvance((colnr_T)MAXCOL);
+ curwin->w_curswant = MAXCOL;
+ curwin->w_set_curswant = FALSE;
+ }
+
/* Ignore the command when already in Insert mode. Inserting an
* expression register that invokes a function can do this. */
if (State & INSERT)
@@ -8091,9 +8098,6 @@ ex_startinsert(eap)
if (eap->forceit)
{
- coladvance((colnr_T)MAXCOL);
- curwin->w_curswant = MAXCOL;
- curwin->w_set_curswant = FALSE;
if (eap->cmdidx == CMD_startinsert)
restart_edit = 'a';
else