patch 8.1.1902: cannot have an info popup without a border
Problem: Cannot have an info popup without a border.
Solution: Add the "border" item to 'completepopup'.
diff --git a/src/popupmnu.c b/src/popupmnu.c
index 929ab06..f82683c 100644
--- a/src/popupmnu.c
+++ b/src/popupmnu.c
@@ -745,6 +745,7 @@
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 @@
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