Mercurial > vim
comparison runtime/doc/popup.txt @ 20386:3b3589275ab9 v8.2.0748
patch 8.2.0748: cannot get a list of all popups
Commit: https://github.com/vim/vim/commit/ef6b979bfae82f64781d8b0ce0194c57111243d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 13 16:34:15 2020 +0200
patch 8.2.0748: cannot get a list of all popups
Problem: Cannot get a list of all popups.
Solution: Add popup_list(). Use it in the test runner.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 13 May 2020 16:45:05 +0200 |
parents | 42ab4d40e78f |
children | 3fe45aa3bbc5 |
comparison
equal
deleted
inserted
replaced
20385:3613c433a314 | 20386:3b3589275ab9 |
---|---|
196 | 196 |
197 Other: | 197 Other: |
198 |popup_getoptions()| get current options for a popup | 198 |popup_getoptions()| get current options for a popup |
199 |popup_getpos()| get actual position and size of a popup | 199 |popup_getpos()| get actual position and size of a popup |
200 |popup_locate()| find popup window at a screen position | 200 |popup_locate()| find popup window at a screen position |
201 |popup_list()| get list of all popups | |
201 | 202 |
202 | 203 |
203 DETAILS *popup-function-details* | 204 DETAILS *popup-function-details* |
204 | 205 |
205 popup_atcursor({what}, {options}) *popup_atcursor()* | 206 popup_atcursor({what}, {options}) *popup_atcursor()* |
420 exists but is not a popup window an error is given. *E993* | 421 exists but is not a popup window an error is given. *E993* |
421 If popup window {id} contains a terminal an error is given. | 422 If popup window {id} contains a terminal an error is given. |
422 | 423 |
423 Can also be used as a |method|: > | 424 Can also be used as a |method|: > |
424 GetPopup()->popup_hide() | 425 GetPopup()->popup_hide() |
426 | |
427 popup_list() *popup_list()* | |
428 Return a List with the |window-ID| of all existing popups. | |
429 | |
425 | 430 |
426 popup_locate({row}, {col}) *popup_locate()* | 431 popup_locate({row}, {col}) *popup_locate()* |
427 Return the |window-ID| of the popup at screen position {row} | 432 Return the |window-ID| of the popup at screen position {row} |
428 and {col}. If there are multiple popups the one with the | 433 and {col}. If there are multiple popups the one with the |
429 highest zindex is returned. If there are no popups at this | 434 highest zindex is returned. If there are no popups at this |