summaryrefslogtreecommitdiff
path: root/src/popupmenu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-14 18:42:15 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-14 18:42:15 +0100
commit09dd2bb3364cc8fb5a8f2507bc2f4ceba481db3d (patch)
tree837ab1e8b081208b0034598cc31575af21c25b20 /src/popupmenu.c
parent6e43b30a854d9aca451a794d368443b90f259a7e (diff)
downloadvim-git-09dd2bb3364cc8fb5a8f2507bc2f4ceba481db3d.tar.gz
patch 8.2.0007: popup menu positioned wrong with folding in two tabsv8.2.0007
Problem: Popup menu positioned wrong with folding in two tabs. Solution: Update the cursor line height. (closes #5353)
Diffstat (limited to 'src/popupmenu.c')
-rw-r--r--src/popupmenu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/popupmenu.c b/src/popupmenu.c
index f908bfca4..ab2ce555b 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -180,6 +180,7 @@ pum_display(
// pum below "pum_win_row"
// Leave two lines of context if possible
+ validate_cheight();
if (curwin->w_cline_row
+ curwin->w_cline_height - curwin->w_wrow >= 3)
context_lines = 3;