diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-13 13:40:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-13 13:40:16 +0200 |
commit | 03a9f848175b182372fb33403998059724a8bf31 (patch) | |
tree | 473f2bb5d40cffb5821443a2956a6c700c1fff44 /runtime | |
parent | d502aa4c10771ec8eb570345ec5e124c4a4b7cd0 (diff) | |
download | vim-git-03a9f848175b182372fb33403998059724a8bf31.tar.gz |
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')
-rw-r--r-- | runtime/doc/popup.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt index 9041f8754..d0bf2c4f2 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()* |