diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-14 14:32:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-14 14:32:22 +0100 |
commit | 00f3b4e007af07870168bf044cecc9d544483953 (patch) | |
tree | debd23a51f44608cb926dd1616babd1934be10b5 /runtime/doc/eval.txt | |
parent | 0a8fed6231c84e4e1b3a7dd6c0d95d3f98207fe0 (diff) |
patch 8.2.0257: cannot recognize a terminal in a popup windowv8.2.0257
Problem: Cannot recognize a terminal in a popup window.
Solution: Add the win_gettype() function.
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index d7c0dc3a8b..765d836375 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -10328,6 +10328,23 @@ win_getid([{win} [, {tab}]]) *win_getid()* Can also be used as a |method|: > GetWinnr()->win_getid() + +win_gettype([{nr}]) *win_gettype()* + Return the type of the window: + "popup" popup window |popup| + "command" command-line window |cmdwin| + (empty) normal window + "unknown" window {nr} not found + + When {nr} is omitted return the type of the current window. + When {nr} is given return the type of this window by number or + |window-ID|. + + Also see the 'buftype' option. When running a terminal in a + popup window then 'buftype' is "terminal" and win_gettype() + returns "popup". + + win_gotoid({expr}) *win_gotoid()* Go to window with ID {expr}. This may also change the current tabpage. |