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

patch 8.2.3614: zindex of popup windows not used when redrawing popup menu

Problem:    zindex of popup windows not used when redrawing popup menu.
Solution:   Check the zindex when redrawing the popup menu.  (closes #9129,
            closes #9089)
This commit is contained in:
Bakudankun
2021-11-17 20:40:16 +00:00
committed by Bram Moolenaar
parent e015d99abb
commit 6555500bcf
8 changed files with 88 additions and 5 deletions

View File

@@ -382,9 +382,9 @@ pum_call_update_screen()
* "row"/"col" is under the popup menu.
*/
int
pum_under_menu(int row, int col)
pum_under_menu(int row, int col, int only_redrawing)
{
return pum_will_redraw
return (!only_redrawing || pum_will_redraw)
&& row >= pum_row
&& row < pum_row + pum_height
&& col >= pum_col - 1