Skip to content

Commit 5f1fea2

Browse files
committed
patch 7.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)
1 parent 0a777ab commit 5f1fea2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/edit.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3903,6 +3903,12 @@ ins_compl_prep(c)
39033903
showmode();
39043904
}
39053905

3906+
#ifdef FEAT_CMDWIN
3907+
if (c == Ctrl_C && cmdwin_type != 0)
3908+
/* Avoid the popup menu remains displayed when leaving the
3909+
* command line window. */
3910+
update_screen(0);
3911+
#endif
39063912
#ifdef FEAT_CINDENT
39073913
/*
39083914
* Indent now if a key was typed that is in 'cinkeys'.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
882,
744746
/**/
745747
881,
746748
/**/

0 commit comments

Comments
 (0)