aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_cmds.c8
-rw-r--r--src/nvim/version.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 78c8b61c37..5db950f120 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -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;
diff --git a/src/nvim/version.c b/src/nvim/version.c
index ca5506c567..e26da2c607 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -214,7 +214,7 @@ static int included_patches[] = {
//421,
//420 NA
//419,
- //418,
+ 418,
//417,
//416,
//415,