forked from aniani/vim
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:
committed by
Bram Moolenaar
parent
e015d99abb
commit
6555500bcf
@@ -3654,7 +3654,11 @@ may_update_popup_mask(int type)
|
||||
for (col = wp->w_wincol;
|
||||
col < wp->w_wincol + width - wp->w_popup_leftoff
|
||||
&& col < screen_Columns; ++col)
|
||||
if (wp->w_popup_mask_cells == NULL
|
||||
if (wp->w_zindex < POPUPMENU_ZINDEX
|
||||
&& pum_visible()
|
||||
&& pum_under_menu(line, col, FALSE))
|
||||
mask[line * screen_Columns + col] = POPUPMENU_ZINDEX;
|
||||
else if (wp->w_popup_mask_cells == NULL
|
||||
|| !popup_masked(wp, width, height, col, line))
|
||||
mask[line * screen_Columns + col] = wp->w_zindex;
|
||||
}
|
||||
|
Reference in New Issue
Block a user