diff src/ex_getln.c @ 13600:75e35ebdb7a4 v8.0.1672

patch 8.0.1672: error during completion causes command to be cancelled commit https://github.com/vim/vim/commit/72532d354e699f1cceec34c0b08e1de4d3ea9641 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 7 19:09:09 2018 +0200 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.)
author Christian Brabandt <cb@256bit.org>
date Sat, 07 Apr 2018 19:15:05 +0200
parents 1fd0f8392946
children dd6a63e3e7c4
line wrap: on
line diff
--- 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