summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-04 15:39:28 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-04 15:39:28 +0200
commit5ca1ac373ae62b37152cb6f85916b402eda520a5 (patch)
tree002e91e14351d0a5f19bd6d7645a831377be5867 /runtime
parentbc2cfe4672d370330b8698d4d025697a9a6ec569 (diff)
downloadvim-git-5ca1ac373ae62b37152cb6f85916b402eda520a5.tar.gz
patch 8.1.1626: no test for closing a popup window with a modified bufferv8.1.1626
Problem: No test for closing a popup window with a modified buffer. Solution: Add a test. Add "popups" to getbufinfo().
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 7c457e34e..cd2149e9d 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -3140,7 +3140,11 @@ bufadd({name}) *bufadd()*
number. Otherwise return the buffer number of the newly
created buffer. When {name} is an empty string then a new
buffer is always created.
- The buffer will not have' 'buflisted' set.
+ The buffer will not have' 'buflisted' set and not be loaded
+ yet. To add some text to the buffer use this: >
+ let bufnr = bufadd('someName')
+ call bufload(bufnr)
+ call setbufline(bufnr, 1, ['some', 'text'])
bufexists({expr}) *bufexists()*
The result is a Number, which is |TRUE| if a buffer called
@@ -4744,6 +4748,8 @@ getbufinfo([{dict}])
buffer-local variables.
windows list of |window-ID|s that display this
buffer
+ popups list of popup |window-ID|s that
+ display this buffer
Examples: >
for buf in getbufinfo()