comparison runtime/doc/popup.txt @ 18162:9c3347b21b89 v8.1.2076

patch 8.1.2076: crash when trying to put a terminal in a popup window Commit: https://github.com/vim/vim/commit/e0d749a49630778d45642d7589a3703697746760 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 25 22:14:48 2019 +0200 patch 8.1.2076: crash when trying to put a terminal in a popup window Problem: Crash when trying to put a terminal buffer in a popup window. Solution: Check for NULL buffer. Do not allow putting a terminal in a popup window.
author Bram Moolenaar <Bram@vim.org>
date Wed, 25 Sep 2019 22:15:03 +0200
parents 8ac85adee561
children 375a7ecdb351
comparison
equal deleted inserted replaced
18161:94e3c1e4d5ae 18162:9c3347b21b89
1 *popup.txt* For Vim version 8.1. Last change: 2019 Sep 08 1 *popup.txt* For Vim version 8.1. Last change: 2019 Sep 25
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
135 135
136 Options can be set on the window with `setwinvar()`, e.g.: > 136 Options can be set on the window with `setwinvar()`, e.g.: >
137 call setwinvar(winid, '&wrap', 0) 137 call setwinvar(winid, '&wrap', 0)
138 And options can be set on the buffer with `setbufvar()`, e.g.: > 138 And options can be set on the buffer with `setbufvar()`, e.g.: >
139 call setbufvar(winbufnr(winid), '&filetype', 'java') 139 call setbufvar(winbufnr(winid), '&filetype', 'java')
140 Note that this does not trigger autocommands. Use `win_execute()` if you do 140 You can also use `win_execute()` with a ":setlocal" command.
141 need them.
142
143 141
144 142
145 ============================================================================== 143 ==============================================================================
146 2. Functions *popup-functions* 144 2. Functions *popup-functions*
147 145
537 props A list of text properties. Optional. 535 props A list of text properties. Optional.
538 Each entry is a dictionary, like the third argument of 536 Each entry is a dictionary, like the third argument of
539 |prop_add()|, but specifying the column in the 537 |prop_add()|, but specifying the column in the
540 dictionary with a "col" entry, see below: 538 dictionary with a "col" entry, see below:
541 |popup-props|. 539 |popup-props|.
540
541 If you want to create a new buffer yourself use |bufadd()| and pass the buffer
542 number to popup_create().
543 It is not possible to use the buffer of a terminal window. *E278*
542 544
543 The second argument of |popup_create()| is a dictionary with options: 545 The second argument of |popup_create()| is a dictionary with options:
544 line Screen line where to position the popup. Can use a 546 line Screen line where to position the popup. Can use a
545 number or "cursor", "cursor+1" or "cursor-1" to use 547 number or "cursor", "cursor+1" or "cursor-1" to use
546 the line of the cursor and add or subtract a number of 548 the line of the cursor and add or subtract a number of