mirror of
https://github.com/vim/vim.git
synced 2025-10-09 06:14:17 -04:00
patch 8.1.1615: crash when passing buffer number to popup_create()
Problem: Crash when passing buffer number to popup_create(). (Yasuhiro Matsumoto) Solution: Initialze the window properly.
This commit is contained in:
@@ -1056,8 +1056,7 @@ popup_create(typval_T *argvars, typval_T *rettv, create_type_T type)
|
||||
{
|
||||
// use existing buffer
|
||||
new_buffer = FALSE;
|
||||
wp->w_buffer = buf;
|
||||
++buf->b_nwindows;
|
||||
win_init_popup_win(wp, buf);
|
||||
buffer_ensure_loaded(buf);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user