Mercurial > vim
diff src/ui.c @ 17225:09fa437d33d8 v8.1.1612
patch 8.1.1612: cannot show an existing buffer in a popup window
commit https://github.com/vim/vim/commit/5b8cfedfbd19a71a30c73cf44b0aec3da7fc1a24
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 30 22:16:10 2019 +0200
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().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Jun 2019 22:30:05 +0200 |
parents | 5169811b3044 |
children | 74b6674b99fd |
line wrap: on
line diff
--- a/src/ui.c +++ b/src/ui.c @@ -1078,7 +1078,7 @@ clip_start_selection(int col, int row, i 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;