diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-04 06:00:24 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-03-04 06:20:57 +0800 |
commit | e56f7413505c76b7b57ced2552479ad02875bc74 (patch) | |
tree | c3d4b89e4fddbd39a010cebb65440b6b33b8b93d | |
parent | 99d688e6459c7963b00a95d544de7a3de951a70b (diff) | |
download | rneovim-e56f7413505c76b7b57ced2552479ad02875bc74.tar.gz rneovim-e56f7413505c76b7b57ced2552479ad02875bc74.tar.bz2 rneovim-e56f7413505c76b7b57ced2552479ad02875bc74.zip |
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
https://github.com/vim/vim/commit/d2219d547d2e70ba7af498866b0d12d3b6517b16
Co-authored-by: Girish Palya <girishji@gmail.com>
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index dbe3505e13..240bdae6cb 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -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; } |