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)
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 985a0e6..0edfe50 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -1175,7 +1175,7 @@
out_flush();
c = vgetc();
- if (c == ESC)
+ if (c == ESC || c == Ctrl_C)
break;
else if (c == CAR || c == NL)
{
@@ -1211,7 +1211,7 @@
}
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)
diff --git a/src/version.c b/src/version.c
index 8cfc17c..8bbd1e4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -767,6 +767,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1588,
+/**/
1587,
/**/
1586,