diff options
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index 0ad24cf877..c9265367bf 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -253,6 +253,10 @@ f_popup_create(typval_T *argvars, typval_T *rettv) if (buf == NULL) return; ml_open(buf); + + win_init_popup_win(wp, buf); + + set_local_options_default(wp); set_string_option_direct_in_buf(buf, (char_u *)"buftype", -1, (char_u *)"popup", OPT_FREE|OPT_LOCAL, 0); set_string_option_direct_in_buf(buf, (char_u *)"bufhidden", -1, @@ -262,8 +266,6 @@ f_popup_create(typval_T *argvars, typval_T *rettv) buf->b_p_bl = FALSE; // unlisted buffer buf->b_locked = TRUE; - win_init_popup_win(wp, buf); - nr = (int)dict_get_number(d, (char_u *)"tab"); if (nr == 0) { |