0
0
mirror of https://github.com/vim/vim.git synced 2025-11-13 22:54:27 -05:00

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.
This commit is contained in:
Bram Moolenaar
2020-09-28 22:29:58 +02:00
parent d58a3bf7da
commit 4934ad0e44
9 changed files with 27 additions and 31 deletions

View File

@@ -1888,7 +1888,9 @@ vgetc(void)
}
#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 @@ vgetorpeek(int advance)
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.