mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.1612: cannot show an existing buffer in a popup window
Problem: Cannot show an existing buffer in a popup window. Solution: Support buffer number argument in popup_create().
This commit is contained in:
@@ -4525,7 +4525,7 @@ nv_mousescroll(cmdarg_T *cap)
|
||||
if (wp == NULL)
|
||||
return;
|
||||
#ifdef FEAT_TEXT_PROP
|
||||
if (bt_popup(wp->w_buffer) && !wp->w_has_scrollbar)
|
||||
if (WIN_IS_POPUP(wp) && !wp->w_has_scrollbar)
|
||||
return;
|
||||
#endif
|
||||
curwin = wp;
|
||||
@@ -4560,7 +4560,7 @@ nv_mousescroll(cmdarg_T *cap)
|
||||
nv_scroll_line(cap);
|
||||
}
|
||||
#ifdef FEAT_TEXT_PROP
|
||||
if (bt_popup(curwin->w_buffer))
|
||||
if (WIN_IS_POPUP(curwin))
|
||||
popup_set_firstline(curwin);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user