diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-12 21:07:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-12 21:07:54 +0200 |
commit | b4f0628fc5892e1bb9f0f780af782ff47ef277ed (patch) | |
tree | e99eecacf4b8582fa7dde3dafb312f8edce2fd18 /runtime/doc/popup.txt | |
parent | d94ac0caca12c6ceb54b07fc932edba84a5f60f2 (diff) | |
download | vim-git-b4f0628fc5892e1bb9f0f780af782ff47ef277ed.tar.gz |
patch 8.1.1673: cannot easily find the popup window at a certain positionv8.1.1673
Problem: Cannot easily find the popup window at a certain position.
Solution: Add popup_locate().
Diffstat (limited to 'runtime/doc/popup.txt')
-rw-r--r-- | runtime/doc/popup.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt index ba4dc3fc1..b0397a35e 100644 --- a/runtime/doc/popup.txt +++ b/runtime/doc/popup.txt @@ -170,6 +170,7 @@ Filter functions: Other: |popup_getoptions()| get current options for a popup |popup_getpos()| get actual position and size of a popup + |popup_locate()| find popup window at a screen position DETAILS *popup-function-details* @@ -343,6 +344,13 @@ popup_hide({id}) *popup_hide()* exists but is not a popup window an error is given. *E993* +popup_locate({row}, {col}) *popup_locate()* + Return the |window-ID| of the popup at screen positoin {row} + and {col}. If there are multiple popups the one with the + highest zindex is returned. If there are no popups at this + position then zero is returned. + + popup_menu({what}, {options}) *popup_menu()* Show the {what} near the cursor, handle selecting one of the items with cursorkeys, and close it an item is selected with |