Mercurial > vim
diff runtime/doc/popup.txt @ 17348:d82b0cfb1e82 v8.1.1673
patch 8.1.1673: cannot easily find the popup window at a certain position
commit https://github.com/vim/vim/commit/b4f0628fc5892e1bb9f0f780af782ff47ef277ed
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 12 21:07:54 2019 +0200
patch 8.1.1673: cannot easily find the popup window at a certain position
Problem: Cannot easily find the popup window at a certain position.
Solution: Add popup_locate().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Jul 2019 21:15:04 +0200 |
parents | 33dccaafb214 |
children | b9bc47742df6 |
line wrap: on
line diff
--- 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