diff src/popupwin.c @ 16851:48c06fcb8be7 v8.1.1427

patch 8.1.1427: popup window screenshot test fails commit https://github.com/vim/vim/commit/54fabd4b5e373c7f1d794d24d27a30a8bac84da1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 30 19:03:22 2019 +0200 patch 8.1.1427: popup window screenshot test fails Problem: Popup window screenshot test fails. Solution: Add missing change to popup window code.
author Bram Moolenaar <Bram@vim.org>
date Thu, 30 May 2019 19:15:05 +0200
parents 283037126560
children e6bcccccbf7b
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -265,6 +265,8 @@ f_popup_create(typval_T *argvars, typval
     buf->b_p_swf = FALSE;   // no swap file
     buf->b_p_bl = FALSE;    // unlisted buffer
     buf->b_locked = TRUE;
+    // Avoid that 'buftype' is reset when this buffer is entered.
+    buf->b_p_initialized = TRUE;
 
     nr = (int)dict_get_number(d, (char_u *)"tab");
     if (nr == 0)