changeset 35754:03ae8d334a28 v9.1.0604

patch 9.1.0604: popup_filter during Press Enter prompt seems to hang Commit: https://github.com/vim/vim/commit/b14c325a5b0f966f65d625997c4393221e261010 Author: Ernie Rael <errael@raelity.com> Date: Fri Jul 19 16:37:09 2024 +0200 patch 9.1.0604: popup_filter during Press Enter prompt seems to hang Problem: popup_filter during Press Enter prompt seems to hang Solution: Return early, when need_wait_return is set (Ernie Rael) fixes: #15300 closes: #15301 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 19 Jul 2024 16:45:36 +0200
parents 4dad6774f91b
children 0a61740511b3
files src/popupwin.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -2651,6 +2651,8 @@ f_popup_filter_yesno(typval_T *argvars, 
 	return;
 
     c = *key;
+    if (c == CAR && need_wait_return)
+	return;
     if (c == K_SPECIAL && key[1] != NUL)
 	c = TO_SPECIAL(key[1], key[2]);
 
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    604,
+/**/
     603,
 /**/
     602,