0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.0007: popup menu positioned wrong with folding in two tabs

Problem:    Popup menu positioned wrong with folding in two tabs.
Solution:   Update the cursor line height. (closes #5353)
This commit is contained in:
Bram Moolenaar
2019-12-14 18:42:15 +01:00
parent 6e43b30a85
commit 09dd2bb336
6 changed files with 39 additions and 1 deletions

View File

@@ -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;