patch 8.2.1769: popup filter interferes with using :normal to move the cursor
Problem: A popup filter interferes with using :normal to move the cursor in
a popup.
Solution: Do not invoke the filter when ex_normal_busy is set.
diff --git a/src/getchar.c b/src/getchar.c
index 2c7bd1f..6e469f4 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1888,7 +1888,9 @@
}
#endif
#ifdef FEAT_PROP_POPUP
- if (!ex_normal_busy_done && popup_do_filter(c))
+ // Only filter keys that do not come from ":normal". Keys from feedkeys()
+ // are filtered.
+ if ((!ex_normal_busy || in_feedkeys) && popup_do_filter(c))
{
if (c == Ctrl_C)
got_int = FALSE; // avoid looping
@@ -3168,9 +3170,6 @@
timedout = TRUE;
continue;
}
-#ifdef FEAT_PROP_POPUP
- ex_normal_busy_done = TRUE;
-#endif
// When 'insertmode' is set, ESC just beeps in Insert
// mode. Use CTRL-L to make edit() return.