summaryrefslogtreecommitdiff
path: root/src/window.c
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 /src/window.c
parentd502aa4c10771ec8eb570345ec5e124c4a4b7cd0 (diff)
downloadvim-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 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index 532d31431..ede2c6f28 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2766,9 +2766,6 @@ win_free_all(void)
(void)win_free_mem(aucmd_win, &dummy, NULL);
aucmd_win = NULL;
}
-# ifdef FEAT_PROP_POPUP
- close_all_popups();
-# endif
while (firstwin != NULL)
(void)win_free_mem(firstwin, &dummy, NULL);
@@ -3801,7 +3798,7 @@ free_tabpage(tabpage_T *tp)
# endif
# ifdef FEAT_PROP_POPUP
while (tp->tp_first_popupwin != NULL)
- popup_close_tabpage(tp, tp->tp_first_popupwin->w_id);
+ popup_close_tabpage(tp, tp->tp_first_popupwin->w_id, TRUE);
#endif
for (idx = 0; idx < SNAP_COUNT; ++idx)
clear_snapshot(tp, idx);