0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0236: popup menu not removed when 'wildmenu' reset while visible

Problem:    Popup menu not removed when 'wildmenu' reset while it is visible.
Solution:   Do not check p_wmnu, only pum_visible(). (closes #10953)
This commit is contained in:
zeertzjq
2022-08-21 14:33:57 +01:00
committed by Bram Moolenaar
parent 474ad390cc
commit b82a2ab8ad
3 changed files with 13 additions and 1 deletions

View File

@@ -367,7 +367,7 @@ void cmdline_pum_display(void)
*/
int cmdline_pum_active(void)
{
return p_wmnu && pum_visible() && compl_match_array != NULL;
return pum_visible() && compl_match_array != NULL;
}
/*