0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0214: a popup window with a terminal can be made hidden

Problem:    A popup window with a terminal can be made hidden.
Solution:   Disallow hiding a terminal popup.
This commit is contained in:
Bram Moolenaar
2020-02-05 21:07:18 +01:00
parent 7077892a79
commit 2e6638d5f0
4 changed files with 30 additions and 2 deletions

View File

@@ -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;