diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-08 18:52:18 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-08 19:04:51 -0400 |
commit | 2bfe2018d652e4bbf444795b2544d7d2af4e7243 (patch) | |
tree | 3a1d872d77cfb7526d55fa450ddb9fb92dcadde4 /src/nvim/popupmnu.c | |
parent | 56bb5993d99592a9a45852e7e7f0e1c64257baf4 (diff) | |
download | rneovim-2bfe2018d652e4bbf444795b2544d7d2af4e7243.tar.gz rneovim-2bfe2018d652e4bbf444795b2544d7d2af4e7243.tar.bz2 rneovim-2bfe2018d652e4bbf444795b2544d7d2af4e7243.zip |
vim-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 vim/vim#5353)
https://github.com/vim/vim/commit/09dd2bb3364cc8fb5a8f2507bc2f4ceba481db3d
Diffstat (limited to 'src/nvim/popupmnu.c')
-rw-r--r-- | src/nvim/popupmnu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/popupmnu.c b/src/nvim/popupmnu.c index c712762bdf..3beada5bc9 100644 --- a/src/nvim/popupmnu.c +++ b/src/nvim/popupmnu.c @@ -226,6 +226,7 @@ void pum_display(pumitem_T *array, int size, int selected, bool array_changed, pum_above = false; // 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; } else { |