summaryrefslogtreecommitdiffstats
path: root/runtime/doc/popup.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-25 22:14:48 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-25 22:14:48 +0200
commite0d749a49630778d45642d7589a3703697746760 (patch)
tree370bd15386bc479491d0aa3f70abeed83038c2ec /runtime/doc/popup.txt
parent101e99207f813ca48a4c0787eed9eb8bf67fba5a (diff)
patch 8.1.2076: crash when trying to put a terminal in a popup windowv8.1.2076
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.
Diffstat (limited to 'runtime/doc/popup.txt')
-rw-r--r--runtime/doc/popup.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt
index 8f1eb5c565..04fa0a6786 100644
--- a/runtime/doc/popup.txt
+++ b/runtime/doc/popup.txt
@@ -1,4 +1,4 @@
-*popup.txt* For Vim version 8.1. Last change: 2019 Sep 08
+*popup.txt* For Vim version 8.1. Last change: 2019 Sep 25
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -137,9 +137,7 @@ Options can be set on the window with `setwinvar()`, e.g.: >
call setwinvar(winid, '&wrap', 0)
And options can be set on the buffer with `setbufvar()`, e.g.: >
call setbufvar(winbufnr(winid), '&filetype', 'java')
-Note that this does not trigger autocommands. Use `win_execute()` if you do
-need them.
-
+You can also use `win_execute()` with a ":setlocal" command.
==============================================================================
@@ -540,6 +538,10 @@ properties. It is in one of four forms:
dictionary with a "col" entry, see below:
|popup-props|.
+If you want to create a new buffer yourself use |bufadd()| and pass the buffer
+number to popup_create().
+It is not possible to use the buffer of a terminal window. *E278*
+
The second argument of |popup_create()| is a dictionary with options:
line Screen line where to position the popup. Can use a
number or "cursor", "cursor+1" or "cursor-1" to use