0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0170

This commit is contained in:
Bram Moolenaar
2005-12-14 21:59:55 +00:00
parent b2c2efa53a
commit 6496966ad1
3 changed files with 38 additions and 17 deletions

View File

@@ -8503,7 +8503,7 @@ ex_normal(eap)
}
/*
* ":startinsert" and ":startreplace"
* ":startinsert", ":startreplace" and ":startgreplace"
*/
static void
ex_startinsert(eap)
@@ -8521,19 +8521,17 @@ ex_startinsert(eap)
if (State & INSERT)
return;
if (eap->forceit)
{
if (eap->cmdidx == CMD_startinsert)
restart_edit = 'a';
else
restart_edit = 'R';
}
if (eap->cmdidx == CMD_startinsert)
restart_edit = 'a';
else if (eap->cmdidx == CMD_startreplace)
restart_edit = 'R';
else
restart_edit = 'V';
if (!eap->forceit)
{
if (eap->cmdidx == CMD_startinsert)
restart_edit = 'i';
else
restart_edit = 'R';
curwin->w_curswant = 0; /* avoid MAXCOL */
}
}