mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +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)
|
if (*p != NUL)
|
||||||
++p;
|
++p;
|
||||||
eap->nextcmd = 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(
|
theline = eap->getline(
|
||||||
eap->cstack->cs_looplevel > 0 ? -1 :
|
eap->cstack->cs_looplevel > 0 ? -1 :
|
||||||
NUL, eap->cookie, indent);
|
NUL, eap->cookie, indent);
|
||||||
|
State = save_State;
|
||||||
|
}
|
||||||
lines_left = Rows - 1;
|
lines_left = Rows - 1;
|
||||||
if (theline == NULL)
|
if (theline == NULL)
|
||||||
break;
|
break;
|
||||||
|
@@ -214,7 +214,7 @@ static int included_patches[] = {
|
|||||||
//421,
|
//421,
|
||||||
//420 NA
|
//420 NA
|
||||||
//419,
|
//419,
|
||||||
//418,
|
418,
|
||||||
//417,
|
//417,
|
||||||
//416,
|
//416,
|
||||||
//415,
|
//415,
|
||||||
|
Reference in New Issue
Block a user