comparison runtime/doc/eval.txt @ 17253:26e0352613ec v8.1.1626

patch 8.1.1626: no test for closing a popup window with a modified buffer commit https://github.com/vim/vim/commit/5ca1ac373ae62b37152cb6f85916b402eda520a5 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 4 15:39:28 2019 +0200 patch 8.1.1626: no test for closing a popup window with a modified buffer Problem: No test for closing a popup window with a modified buffer. Solution: Add a test. Add "popups" to getbufinfo().
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Jul 2019 15:45:05 +0200
parents a8fc7d97b54d
children cb0ca75f0c26
comparison
equal deleted inserted replaced
17252:c46563862cd9 17253:26e0352613ec
3138 Add a buffer to the buffer list with {name}. 3138 Add a buffer to the buffer list with {name}.
3139 If a buffer for file {name} already exists, return that buffer 3139 If a buffer for file {name} already exists, return that buffer
3140 number. Otherwise return the buffer number of the newly 3140 number. Otherwise return the buffer number of the newly
3141 created buffer. When {name} is an empty string then a new 3141 created buffer. When {name} is an empty string then a new
3142 buffer is always created. 3142 buffer is always created.
3143 The buffer will not have' 'buflisted' set. 3143 The buffer will not have' 'buflisted' set and not be loaded
3144 yet. To add some text to the buffer use this: >
3145 let bufnr = bufadd('someName')
3146 call bufload(bufnr)
3147 call setbufline(bufnr, 1, ['some', 'text'])
3144 3148
3145 bufexists({expr}) *bufexists()* 3149 bufexists({expr}) *bufexists()*
3146 The result is a Number, which is |TRUE| if a buffer called 3150 The result is a Number, which is |TRUE| if a buffer called
3147 {expr} exists. 3151 {expr} exists.
3148 If the {expr} argument is a number, buffer numbers are used. 3152 If the {expr} argument is a number, buffer numbers are used.
4742 name sign name 4746 name sign name
4743 variables a reference to the dictionary with 4747 variables a reference to the dictionary with
4744 buffer-local variables. 4748 buffer-local variables.
4745 windows list of |window-ID|s that display this 4749 windows list of |window-ID|s that display this
4746 buffer 4750 buffer
4751 popups list of popup |window-ID|s that
4752 display this buffer
4747 4753
4748 Examples: > 4754 Examples: >
4749 for buf in getbufinfo() 4755 for buf in getbufinfo()
4750 echo buf.name 4756 echo buf.name
4751 endfor 4757 endfor