From 15a35c4f4a1670dd6ca228068a451f78d2bf75e0 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 25 Jun 2014 12:26:46 +0200 Subject: [PATCH] updated for version 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. --- src/ex_getln.c | 7 +++++++ src/version.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/ex_getln.c b/src/ex_getln.c index 2678184bca..d000112e62 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -342,6 +342,13 @@ getcmdline(firstc, count, indent) do_digraph(-1); /* init digraph typeahead */ #endif + /* 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/version.c b/src/version.c index bb63095f10..2376b6983a 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 337, /**/ 336, /**/