0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.0.1672: error during completion causes command to be cancelled

Problem:    Error during completion causes command to be cancelled.
Solution:   Reset did_emsg before waiting for another character. (Tom M.)
This commit is contained in:
Bram Moolenaar
2018-04-07 19:09:09 +02:00
parent 22efba47de
commit 72532d354e
3 changed files with 17 additions and 0 deletions

View File

@@ -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