summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-07 19:09:09 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-07 19:09:09 +0200
commit72532d354e699f1cceec34c0b08e1de4d3ea9641 (patch)
treede2c28d5bd4a630b7e1c3225dff7204df9613e36 /src/ex_getln.c
parent22efba47deb7e504142487fdc1617ec638cf0683 (diff)
patch 8.0.1672: error during completion causes command to be cancelledv8.0.1672
Problem: Error during completion causes command to be cancelled. Solution: Reset did_emsg before waiting for another character. (Tom M.)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 48cccf18e0..9fdfac5a28 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -426,6 +426,10 @@ getcmdline(
#endif
quit_more = FALSE; /* reset after CTRL-D which had a more-prompt */
+ did_emsg = FALSE; /* There can't really be a reason why an error
+ that occurs while typing a command should
+ cause the command not to be executed. */
+
cursorcmd(); /* set the cursor on the right spot */
/* Get a character. Ignore K_IGNORE and K_NOP, they should not do