mirror of
https://github.com/neovim/neovim.git
synced 2026-09-04 21:30:35 +00:00
vim-patch:9.2.1024: 'wildmode' list:full does not complete first match
Problem: With 'wildmode' set to list:full, matches are listed but the
first match is not completed on the first Tab press (rendcrx).
Solution: Do not suppress selection when list and full are active in
the same completion phase. Add regression tests for file
completion, comma-separated phases and noselect precedence
(Seunghee Kim).
fixes: vim/vim#19532
related: vim/vim#18088
closes: vim/vim#21181
54c988c6c5
Co-authored-by: SeungheeKim <ksh368@naver.com>
This commit is contained in:
@@ -1184,7 +1184,7 @@ static int command_line_wildchar_complete(CommandLineState *s)
|
||||
if (wim_longest) {
|
||||
res = nextwild(&s->xpc, WILD_LONGEST, options, escape);
|
||||
} else {
|
||||
if (wim_noselect || wim_list) {
|
||||
if (wim_noselect || (wim_list && !wim_full)) {
|
||||
options |= WILD_NOSELECT;
|
||||
}
|
||||
if (wim_noinsert) {
|
||||
|
||||
Reference in New Issue
Block a user