wildmode: fix wildmode=longest,full with pum #11690

With "wildmode=longest,full" + wildoptions=pum, wildmode should show
popupmenu after Tab-Tab, not the horizontal wildmenu.

Fixes #11622
This commit is contained in:
akovaski
2020-01-21 02:35:01 -06:00
committed by Justin M. Keyes
parent 99aec38259
commit 97dcc48c99
3 changed files with 150 additions and 15 deletions

View File

@@ -941,8 +941,10 @@ static int command_line_execute(VimState *state, int key)
// if 'wildmode' contains "list" may still need to list
if (s->xpc.xp_numfiles > 1
&& !s->did_wild_list
&& (wim_flags[s->wim_index] & WIM_LIST)) {
(void)showmatches(&s->xpc, false);
&& ((wim_flags[s->wim_index] & WIM_LIST)
|| (p_wmnu && (wim_flags[s->wim_index] & WIM_FULL) != 0))) {
(void)showmatches(&s->xpc, p_wmnu
&& ((wim_flags[s->wim_index] & WIM_LIST) == 0));
redrawcmd();
s->did_wild_list = true;
}