aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-09-10 17:04:58 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-09-10 17:04:58 -0400
commit867bdae5c2399040af9a6885c279ec1838fc756a (patch)
tree827b1717cbedd9f6e711f191901d3e25967ac219 /src/nvim/ex_getln.c
parent34c418fceb457bb21bf365311ce558d2d616b24a (diff)
parent1fb80d24eba04eb4a129ce41651e9de11fa332a1 (diff)
downloadrneovim-867bdae5c2399040af9a6885c279ec1838fc756a.tar.gz
rneovim-867bdae5c2399040af9a6885c279ec1838fc756a.tar.bz2
rneovim-867bdae5c2399040af9a6885c279ec1838fc756a.zip
Merge pull request #1158 from atwupack/vp-7.4.337
vim-patch:7.4.337
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c8
1 files changed, 8 insertions, 0 deletions
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.
*/