summaryrefslogtreecommitdiff
path: root/src/popupmnu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-21 15:13:41 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-21 15:13:41 +0200
commitbd483b3f577ee1af7c8c8bf440f5d81613336975 (patch)
tree0de3487b03642aa7e85ce65560df2a41fc0b80df /src/popupmnu.c
parente2c453d38f6512ac4cff7cd26aa7780b4e2534d7 (diff)
downloadvim-git-bd483b3f577ee1af7c8c8bf440f5d81613336975.tar.gz
patch 8.1.1902: cannot have an info popup without a borderv8.1.1902
Problem: Cannot have an info popup without a border. Solution: Add the "border" item to 'completepopup'.
Diffstat (limited to 'src/popupmnu.c')
-rw-r--r--src/popupmnu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 929ab0672..f82683ca4 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -745,6 +745,7 @@ pum_set_selected(int n, int repeat)
if (use_popup)
{
int col = pum_col + pum_width + 1;
+ int row = pum_row + pum_selected - pum_first + 1;
if (Columns - col < 20 && Columns - col < pum_col)
{
@@ -755,8 +756,8 @@ pum_set_selected(int n, int repeat)
else
curwin->w_maxwidth = Columns - col + 1;
curwin->w_maxwidth -= popup_extra_width(curwin);
- popup_set_wantpos_rowcol(curwin,
- pum_row + pum_selected - pum_first, col);
+ row -= popup_top_extra(curwin);
+ popup_set_wantpos_rowcol(curwin, row, col);
}
# endif
if (!resized