0
0
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:
Bram Moolenaar
2019-06-30 22:16:10 +02:00
parent 892ae723ab
commit 5b8cfedfbd
12 changed files with 143 additions and 79 deletions

View File

@@ -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
}