Skip to content

Commit

Permalink
patch 9.1.0604: popup_filter during Press Enter prompt seems to hang
Browse files Browse the repository at this point in the history
Problem:  popup_filter during Press Enter prompt seems to hang
Solution: Return early, when need_wait_return is set
          (Ernie Rael)

fixes: vim#15300
closes: vim#15301

Signed-off-by: Ernie Rael <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
  • Loading branch information
errael authored and chrisbra committed Jul 19, 2024
1 parent d2cedc2 commit b14c325
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/popupwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2651,6 +2651,8 @@ f_popup_filter_yesno(typval_T *argvars, typval_T *rettv)
return;

c = *key;
if (c == CAR && need_wait_return)
return;
if (c == K_SPECIAL && key[1] != NUL)
c = TO_SPECIAL(key[1], key[2]);

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

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

0 comments on commit b14c325

Please sign in to comment.