vim-patch:9.1.1739: Matches may be listed twice with wildmode=longest,list

Problem:  Matches may be listed twice with wildmode=longest,list when
          "longest" doesn't change command line (after 9.1.1737).
Solution: Set did_wild_list when trying "list" after "longest"
          (zeertzjq).

closes: vim/vim#18227

a28a2eb9d9
This commit is contained in:
zeertzjq
2025-09-08 08:13:24 +08:00
parent f2bda1effc
commit d784ed7013
3 changed files with 8 additions and 1 deletions

View File

@@ -1195,6 +1195,9 @@ static int command_line_wildchar_complete(CommandLineState *s)
nextwild(&s->xpc, WILD_NEXT, options, escape);
}
showmatches(&s->xpc, p_wmnu, wim_list_next, wim_noselect_next);
if (wim_list_next) {
s->did_wild_list = true;
}
}
}
} else {