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 /src/window.c | |
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 'src/window.c')
-rw-r--r-- | src/window.c | 5 |
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); |