From 1fb80d24eba04eb4a129ce41651e9de11fa332a1 Mon Sep 17 00:00:00 2001 From: André Twupack Date: Wed, 10 Sep 2014 21:17:31 +0200 Subject: vim-patch:7.4.337 Problem: When there is an error preparing to edit the command line, the command won't be executed. (Hirohito Higashi) Solution: Reset did_emsg before editing. https://code.google.com/p/vim/source/detail?r=v7-4-337 --- src/nvim/ex_getln.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nvim/ex_getln.c') diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 69fb1d344a..810df627c1 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -287,6 +287,14 @@ getcmdline ( do_digraph(-1); /* init digraph typeahead */ + // If something above caused an error, reset the flags, we do want to type + // and execute commands. Display may be messed up a bit. + if (did_emsg) { + redrawcmd(); + } + did_emsg = FALSE; + got_int = FALSE; + /* * Collect the command string, handling editing keys. */ -- cgit