aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-09-13 14:05:34 +0200
committerGitHub <noreply@github.com>2016-09-13 14:05:34 +0200
commit7eb4d2f79dcc712dae1513516b9db5f574d51437 (patch)
tree044ffb8deb0b2b4b14fa189624516640986df939 /runtime/doc
parenta34d3a7244f21c3d9494dd04f77346991ae24ae5 (diff)
downloadrneovim-7eb4d2f79dcc712dae1513516b9db5f574d51437.tar.gz
rneovim-7eb4d2f79dcc712dae1513516b9db5f574d51437.tar.bz2
rneovim-7eb4d2f79dcc712dae1513516b9db5f574d51437.zip
vim-patch:7.4.1558 (#5333)
Problem: It is not easy to find out what windows display a buffer. Solution: Add win_findbuf(). https://github.com/vim/vim/commit/9cdf86b86f5fdb5a45b682f336846f9d9a9c6f1f
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/eval.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index c95464c02a..d97a1400ce 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2148,6 +2148,7 @@ values({dict}) List values in {dict}
virtcol({expr}) Number screen column of cursor or mark
visualmode([expr]) String last visual mode used
wildmenumode() Number whether 'wildmenu' mode is active
+win_findbuf( {bufnr}) List find windows containing {bufnr}
win_getid( [{win} [, {tab}]]) Number get window ID for {win} in {tab}
win_gotoid( {expr}) Number go to window with ID {expr}
win_id2tabwin( {expr}) List get tab window nr from window ID
@@ -7234,6 +7235,10 @@ wildmenumode() *wildmenumode()*
(Note, this needs the 'wildcharm' option set appropriately).
+win_findbuf({bufnr}) *win_findbuf()*
+ Returns a list with window IDs for windows that contain buffer
+ {bufnr}. When there is none the list is empty.
+
win_getid([{win} [, {tab}]]) *win_getid()*
Get the window ID for the specified window.
When {win} is missing use the current window.