summaryrefslogtreecommitdiffstats
path: root/runtime/doc/popup.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-13 13:40:16 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-13 13:40:16 +0200
commit03a9f848175b182372fb33403998059724a8bf31 (patch)
tree473f2bb5d40cffb5821443a2956a6c700c1fff44 /runtime/doc/popup.txt
parentd502aa4c10771ec8eb570345ec5e124c4a4b7cd0 (diff)
patch 8.2.0747: cannot forcefully close all popupsv8.2.0747
Problem: Cannot forcefully close all popups. Solution: Add the "force" argument to popup_clear(). Use it after running a test. Put back the check for a popup when editing a file.
Diffstat (limited to 'runtime/doc/popup.txt')
-rw-r--r--runtime/doc/popup.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt
index 9041f87540..d0bf2c4f28 100644
--- a/runtime/doc/popup.txt
+++ b/runtime/doc/popup.txt
@@ -236,8 +236,15 @@ popup_beval({what}, {options}) *popup_beval()*
GetText()->popup_beval({})
<
*popup_clear()*
-popup_clear() Emergency solution to a misbehaving plugin: close all popup
+popup_clear([{force}])
+ Emergency solution to a misbehaving plugin: close all popup
windows for the current tab and global popups.
+ Close callbacks are not invoked.
+ When {force} is not present this will fail if the current
+ window is a popup.
+ When {force} is present and |TRUE| the popup is also closed
+ when it is the current window. If a terminal is running in a
+ popup it is killed.
popup_close({id} [, {result}]) *popup_close()*