diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-28 22:29:58 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-28 22:29:58 +0200 |
commit | 4934ad0e448bfa03ba19c7c5b411c457a9910442 (patch) | |
tree | be240c37e3e2be89bde36969b2287a934b4209fc /runtime | |
parent | d58a3bf7dac8d53faf42e13cc1152b110f12c404 (diff) | |
download | vim-git-4934ad0e448bfa03ba19c7c5b411c457a9910442.tar.gz |
patch 8.2.1769: popup filter interferes with using :normal to move the cursorv8.2.1769
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.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/popup.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt index 118bc9b09..0e28fdd33 100644 --- a/runtime/doc/popup.txt +++ b/runtime/doc/popup.txt @@ -1,4 +1,4 @@ -*popup.txt* For Vim version 8.2. Last change: 2020 Sep 27 +*popup.txt* For Vim version 8.2. Last change: 2020 Sep 28 VIM REFERENCE MANUAL by Bram Moolenaar @@ -910,6 +910,11 @@ A mouse click arrives as <LeftMouse>. The coordinates can be obtained with Vim provides standard filters |popup_filter_menu()| and |popup_filter_yesno()|. +Keys coming from a `:normal` command do not pass through the filter. This can +be used to move the cursor in a popup where the "cursorline" option is set: > + call win_execute(winid, 'normal! 10Gzz') +Keys coming from `feedkeys()` are passed through the filter. + Note that "x" is the normal way to close a popup. You may want to use Esc, but since many keys start with an Esc character, there may be a delay before Vim recognizes the Esc key. If you do use Esc, it is recommended to set the |