mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
vim-patch:7.4.418
Problem: When leaving ":append" the cursor shape is like in Insert mode. (Jacob Niehus) Solution: Do not have State set to INSERT when calling getline(). https://code.google.com/p/vim/source/detail?r=v7-4-418
This commit is contained in:
@@ -3183,10 +3183,16 @@ void ex_append(exarg_T *eap)
|
||||
if (*p != NUL)
|
||||
++p;
|
||||
eap->nextcmd = p;
|
||||
} else
|
||||
} else {
|
||||
// Set State to avoid the cursor shape to be set to INSERT mode
|
||||
// when getline() returns.
|
||||
int save_State = State;
|
||||
State = CMDLINE;
|
||||
theline = eap->getline(
|
||||
eap->cstack->cs_looplevel > 0 ? -1 :
|
||||
NUL, eap->cookie, indent);
|
||||
State = save_State;
|
||||
}
|
||||
lines_left = Rows - 1;
|
||||
if (theline == NULL)
|
||||
break;
|
||||
|
@@ -214,7 +214,7 @@ static int included_patches[] = {
|
||||
//421,
|
||||
//420 NA
|
||||
//419,
|
||||
//418,
|
||||
418,
|
||||
//417,
|
||||
//416,
|
||||
//415,
|
||||
|
Reference in New Issue
Block a user