summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-09-25 19:12:22 +0200
committerBram Moolenaar <Bram@vim.org>2015-09-25 19:12:22 +0200
commit5f1fea28f5bc573e2430773c49e95ae1f9cc2a25 (patch)
tree43c6b6c360f7ecd37c74c6c176cca5a9063c0e17 /src/edit.c
parent0a777ab9890ba0e8dd57f082e98fde1adab36aa0 (diff)
patch 7.4.882v7.4.882
Problem: When leaving the command line window with CTRL-C while a completion menu is displayed the menu isn't removed. Solution: Force a screen update. (Hirohito Higashi)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index db4a079e40..bd5c57e1a9 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -3903,6 +3903,12 @@ ins_compl_prep(c)
showmode();
}
+#ifdef FEAT_CMDWIN
+ if (c == Ctrl_C && cmdwin_type != 0)
+ /* Avoid the popup menu remains displayed when leaving the
+ * command line window. */
+ update_screen(0);
+#endif
#ifdef FEAT_CINDENT
/*
* Indent now if a key was typed that is in 'cinkeys'.