mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:9.1.1168: wrong flags passed down to nextwild()
Problem: wrong flags passed down to nextwild()
(zeertzjq, after v9.1.1166)
Solution: only pass options flags (Girish Palya)
`options` needs to be passed into nextwild() since it may contain
WILD_KEEP_SOLE_ITEM which prevents the menu items list from getting
freed if there is only 1 item left (if `noselect` is set).
closes: vim/vim#16778
d2219d547d
Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
@@ -1140,7 +1140,7 @@ static int command_line_wildchar_complete(CommandLineState *s)
|
||||
int p_wmnu_save = p_wmnu;
|
||||
p_wmnu = 0;
|
||||
// remove match
|
||||
nextwild(&s->xpc, WILD_PREV, 0 | (options & ~kOptWimFlagNoselect), s->firstc != '@');
|
||||
nextwild(&s->xpc, WILD_PREV, options, s->firstc != '@');
|
||||
p_wmnu = p_wmnu_save;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user