diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-05 21:07:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-05 21:07:18 +0100 |
commit | 2e6638d5f03ae183999c726ba63e528d556342c0 (patch) | |
tree | e077d43701db19bc3bf4660d9b12c6304e031d58 /src/popupwin.c | |
parent | 7077892a7918845a00ce8d7833b43cc6cbed2081 (diff) | |
download | vim-git-2e6638d5f03ae183999c726ba63e528d556342c0.tar.gz |
patch 8.2.0214: a popup window with a terminal can be made hiddenv8.2.0214
Problem: A popup window with a terminal can be made hidden.
Solution: Disallow hiding a terminal popup.
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index c43800099..56d04b57e 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -2371,6 +2371,10 @@ f_popup_close(typval_T *argvars, typval_T *rettv UNUSED) void popup_hide(win_T *wp) { +#ifdef FEAT_TERMINAL + if (error_if_term_popup_window()) + return; +#endif if ((wp->w_popup_flags & POPF_HIDDEN) == 0) { wp->w_popup_flags |= POPF_HIDDEN; |