mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
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:

committed by
Justin M. Keyes

parent
99aec38259
commit
97dcc48c99
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user