Skip to content

Commit

Permalink
patch 8.0.1588: popup menu hangs after typing CTRL-C
Browse files Browse the repository at this point in the history
Problem:    Popup menu hangs after typing CTRL-C.
Solution:   Make CTRL-C exit the loop. (Ozaki Kiichi, closes #2697)
  • Loading branch information
brammool committed Mar 7, 2018
1 parent 3324d0a commit 52f18a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/popupmnu.c
Expand Up @@ -1175,7 +1175,7 @@ pum_show_popupmenu(vimmenu_T *menu)
out_flush();

c = vgetc();
if (c == ESC)
if (c == ESC || c == Ctrl_C)
break;
else if (c == CAR || c == NL)
{
Expand Down Expand Up @@ -1211,7 +1211,7 @@ pum_show_popupmenu(vimmenu_T *menu)
}
else if (c == K_LEFTDRAG || c == K_RIGHTDRAG || c == K_MOUSEMOVE)
{
/* mouse moved: selec item in the mouse row */
/* mouse moved: select item in the mouse row */
pum_select_mouse_pos();
}
else if (c == K_LEFTMOUSE || c == K_LEFTMOUSE_NM || c == K_RIGHTRELEASE)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -766,6 +766,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1588,
/**/
1587,
/**/
Expand Down

0 comments on commit 52f18a1

Please sign in to comment.