Skip to content

Commit 52f18a1

Browse files
committed
patch 8.0.1588: popup menu hangs after typing CTRL-C
Problem: Popup menu hangs after typing CTRL-C. Solution: Make CTRL-C exit the loop. (Ozaki Kiichi, closes #2697)
1 parent 3324d0a commit 52f18a1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/popupmnu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ pum_show_popupmenu(vimmenu_T *menu)
11751175
out_flush();
11761176

11771177
c = vgetc();
1178-
if (c == ESC)
1178+
if (c == ESC || c == Ctrl_C)
11791179
break;
11801180
else if (c == CAR || c == NL)
11811181
{
@@ -1211,7 +1211,7 @@ pum_show_popupmenu(vimmenu_T *menu)
12111211
}
12121212
else if (c == K_LEFTDRAG || c == K_RIGHTDRAG || c == K_MOUSEMOVE)
12131213
{
1214-
/* mouse moved: selec item in the mouse row */
1214+
/* mouse moved: select item in the mouse row */
12151215
pum_select_mouse_pos();
12161216
}
12171217
else if (c == K_LEFTMOUSE || c == K_LEFTMOUSE_NM || c == K_RIGHTRELEASE)

src/version.c

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

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1588,
769771
/**/
770772
1587,
771773
/**/

0 commit comments

Comments
 (0)