summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-30 22:16:10 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-30 22:16:10 +0200
commit5b8cfedfbd19a71a30c73cf44b0aec3da7fc1a24 (patch)
treefdaa4dec72d804fdbaab665d550dc10b3be0dafb /src/ui.c
parent892ae723ab95e429222e930cf41b32809567e58e (diff)
downloadvim-git-5b8cfedfbd19a71a30c73cf44b0aec3da7fc1a24.tar.gz
patch 8.1.1612: cannot show an existing buffer in a popup windowv8.1.1612
Problem: Cannot show an existing buffer in a popup window. Solution: Support buffer number argument in popup_create().
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index 1732fe8ff..1e6c1464a 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1078,7 +1078,7 @@ clip_start_selection(int col, int row, int repeated_click)
int col_cp = col;
wp = mouse_find_win(&row_cp, &col_cp, FIND_POPUP);
- if (wp != NULL && bt_popup(wp->w_buffer))
+ if (wp != NULL && WIN_IS_POPUP(wp))
{
// Click in a popup window restricts selection to that window,
// excluding the border.
@@ -3052,7 +3052,7 @@ retnomove:
#ifdef FEAT_TEXT_PROP
// Click in a popup window may start dragging or modeless selection,
// but not much else.
- if (bt_popup(wp->w_buffer))
+ if (WIN_IS_POPUP(wp))
{
on_sep_line = 0;
in_popup_win = TRUE;