Mercurial > vim
diff src/popupwin.c @ 16843:283037126560 v8.1.1423
patch 8.1.1423: popup windows use options from current window and buffer
commit https://github.com/vim/vim/commit/cacc6a5c986fbc716bf53b6916f076dd7b388142
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 30 15:22:43 2019 +0200
patch 8.1.1423: popup windows use options from current window and buffer
Problem: Popup windows use options from current window and buffer.
Solution: Clear all local options when creating a popup window.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 30 May 2019 15:30:05 +0200 |
parents | cf630fab9fb6 |
children | 48c06fcb8be7 |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -253,6 +253,10 @@ f_popup_create(typval_T *argvars, typval 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 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) {