1
0
forked from aniani/vim

patch 8.1.1560: popup window hidden option not implemented yet

Problem:    Popup window hidden option not implemented yet.
Solution:   Implement the hidden option.
This commit is contained in:
Bram Moolenaar
2019-06-16 20:39:13 +02:00
parent eb2310d47d
commit 6313c4f41d
3 changed files with 45 additions and 2 deletions

View File

@@ -428,6 +428,13 @@ apply_options(win_T *wp, buf_T *buf UNUSED, dict_T *dict)
semsg(_(e_invarg2), tv_get_string(&di->di_tv));
}
nr = dict_get_number(dict, (char_u *)"hidden");
if (nr > 0)
{
wp->w_popup_flags |= POPF_HIDDEN;
--wp->w_buffer->b_nwindows;
}
popup_mask_refresh = TRUE;
}