summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-28 17:57:43 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-28 17:57:43 +0200
commit56c0c4749d58e9331b212c38df46e2993d5d97c1 (patch)
tree67c70bc8ccda16cc54bc6bc6fb97996da92056ca /runtime
parentac3150d385e6e3f3fe76642aac3cda954d30583f (diff)
downloadvim-git-56c0c4749d58e9331b212c38df46e2993d5d97c1.tar.gz
patch 8.1.1770: cannot get the window ID of the popup preview windowv8.1.1770
Problem: Cannot get the window ID of the popup preview window. Solution: Add popup_getpreview().
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt1
-rw-r--r--runtime/doc/popup.txt6
2 files changed, 6 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 79c5409c5..bd0569138 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -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}
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt
index 52d0892bb..d696e2833 100644
--- a/runtime/doc/popup.txt
+++ b/runtime/doc/popup.txt
@@ -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