cmdline: wildmenumode() should be true with wildoptions+=pum

This commit is contained in:
Björn Linse
2019-09-28 21:00:27 +02:00
parent e933426299
commit 0636b25f28
2 changed files with 5 additions and 1 deletions

View File

@@ -18845,8 +18845,9 @@ static void f_visualmode(typval_T *argvars, typval_T *rettv, FunPtr fptr)
*/
static void f_wildmenumode(typval_T *argvars, typval_T *rettv, FunPtr fptr)
{
if (wild_menu_showing)
if (wild_menu_showing || ((State & CMDLINE) && pum_visible())) {
rettv->vval.v_number = 1;
}
}
/// "win_findbuf()" function