diff src/popupwin.c @ 17121:808ea76535a9 v8.1.1560

patch 8.1.1560: popup window hidden option not implemented yet commit https://github.com/vim/vim/commit/6313c4f41d0e1d91b4217557685c014ea919915f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 16 20:39:13 2019 +0200 patch 8.1.1560: popup window hidden option not implemented yet Problem: Popup window hidden option not implemented yet. Solution: Implement the hidden option.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Jun 2019 20:45:04 +0200
parents b439e096a011
children efc6f5e3b543
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -428,6 +428,13 @@ apply_options(win_T *wp, buf_T *buf UNUS
 	    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;
 }