0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.1770: cannot get the window ID of the popup preview window

Problem:    Cannot get the window ID of the popup preview window.
Solution:   Add popup_getpreview().
This commit is contained in:
Bram Moolenaar
2019-07-28 17:57:43 +02:00
parent ac3150d385
commit 56c0c4749d
7 changed files with 33 additions and 2 deletions

View File

@@ -2554,6 +2554,7 @@ popup_filter_menu({id}, {key}) Number filter for a menu popup window
popup_filter_yesno({id}, {key}) Number filter for a dialog popup window
popup_getoptions({id}) Dict get options of popup window {id}
popup_getpos({id}) Dict get position of popup window {id}
popup_getpreview() Number get window ID of preview popup window
popup_hide({id}) none hide popup menu {id}
popup_menu({what}, {options}) Number create a popup window used as a menu
popup_move({id}, {options}) none set position of popup window {id}

View File

@@ -1,4 +1,4 @@
*popup.txt* For Vim version 8.1. Last change: 2019 Jul 18
*popup.txt* For Vim version 8.1. Last change: 2019 Jul 28
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -335,6 +335,10 @@ popup_getpos({id}) *popup_getpos()*
If popup window {id} is not found an empty Dict is returned.
popup_getpreview() *popup_getpreview()*
Get the |window-ID| for the popup preview window.
Return zero if there is none.
popup_hide({id}) *popup_hide()*
If {id} is a displayed popup, hide it now. If the popup has a