mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.1.1424: crash when popup menu is deleted while waiting for char
Problem: Crash when popup menu is deleted while waiting for char. Solution: Bail out when pum_array was cleared.
This commit is contained in:
@@ -1302,7 +1302,10 @@ pum_show_popupmenu(vimmenu_T *menu)
|
|||||||
out_flush();
|
out_flush();
|
||||||
|
|
||||||
c = vgetc();
|
c = vgetc();
|
||||||
if (c == ESC || c == Ctrl_C)
|
|
||||||
|
// Bail out when typing Esc, CTRL-C or some callback closed the popup
|
||||||
|
// menu.
|
||||||
|
if (c == ESC || c == Ctrl_C || pum_array == NULL)
|
||||||
break;
|
break;
|
||||||
else if (c == CAR || c == NL)
|
else if (c == CAR || c == NL)
|
||||||
{
|
{
|
||||||
|
@@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1424,
|
||||||
/**/
|
/**/
|
||||||
1423,
|
1423,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user