aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndré Twupack <atwupack@mailbox.org>2014-09-10 21:17:31 +0200
committerAndré Twupack <atwupack@mailbox.org>2014-09-10 21:17:31 +0200
commit1fb80d24eba04eb4a129ce41651e9de11fa332a1 (patch)
tree827b1717cbedd9f6e711f191901d3e25967ac219 /src
parent34c418fceb457bb21bf365311ce558d2d616b24a (diff)
downloadrneovim-1fb80d24eba04eb4a129ce41651e9de11fa332a1.tar.gz
rneovim-1fb80d24eba04eb4a129ce41651e9de11fa332a1.tar.bz2
rneovim-1fb80d24eba04eb4a129ce41651e9de11fa332a1.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_getln.c8
-rw-r--r--src/nvim/version.c2
2 files changed, 9 insertions, 1 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.
*/
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 092d21f580..ebb6f5c4ed 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -258,7 +258,7 @@ static int included_patches[] = {
//340 NA
339,
338,
- //337,
+ 337,
//336,
335,
334,