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:
zeertzjq
2026-08-31 10:49:45 +08:00
parent b279472393
commit 8bbcd3e00e
2 changed files with 29 additions and 1 deletions

View File

@@ -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) {