From 958ca938b44ea7d6f126887f5bec98ee6d2f6f15 Mon Sep 17 00:00:00 2001 From: glacambre Date: Wed, 14 Aug 2019 19:07:04 +0200 Subject: ex_getln.c: fix not triggering pum when wildoptions=pum (#10042) Some of the logic that was present for was missing from . Closes https://github.com/neovim/neovim/issues/10042. --- src/nvim/ex_getln.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 6b4092b5b4..3f7bc45c2e 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1021,9 +1021,11 @@ static int command_line_execute(VimState *state, int key) // goes to last match, in a clumsy way if (s->c == K_S_TAB && KeyTyped) { - if (nextwild(&s->xpc, WILD_EXPAND_KEEP, 0, s->firstc != '@') == OK - && nextwild(&s->xpc, WILD_PREV, 0, s->firstc != '@') == OK - && nextwild(&s->xpc, WILD_PREV, 0, s->firstc != '@') == OK) { + if (nextwild(&s->xpc, WILD_EXPAND_KEEP, 0, s->firstc != '@') == OK) { + showmatches(&s->xpc, p_wmnu + && ((wim_flags[s->wim_index] & WIM_LIST) == 0)); + nextwild(&s->xpc, WILD_PREV, 0, s->firstc != '@'); + nextwild(&s->xpc, WILD_PREV, 0, s->firstc != '@'); return command_line_changed(s); } } -- cgit