Problem: Crash when passing buffer number to popup_create(). (Yasuhiro
Matsumoto)
Solution: Initialze the window properly.
{
// use existing buffer
new_buffer = FALSE;
- wp->w_buffer = buf;
- ++buf->b_nwindows;
+ win_init_popup_win(wp, buf);
buffer_ensure_loaded(buf);
}
else
call assert_equal({}, popup_getpos(winid))
call assert_equal(1, bufloaded(buf))
exe 'bwipe! ' .. buf
+
+ edit test_popupwin.vim
+ let winid = popup_create(bufnr(''), {})
+ redraw
+ call popup_close(winid)
endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1615,
/**/
1614,
/**/