patch 9.1.1739: Matches may be listed twice with wildmode=longest,list Commit: https://github.com/vim/vim/commit/a28a2eb9d9362adb1c7f9ebde66cd1329dd463bb Author: zeertzjq <zeert...@outlook.com> Date: Sun Sep 7 09:35:04 2025 +0200
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: #18227 Signed-off-by: zeertzjq <zeert...@outlook.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/ex_getln.c b/src/ex_getln.c index 07c15ef2a..1c13db901 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1038,6 +1038,8 @@ cmdline_wildchar_complete( nextwild(xp, WILD_NEXT, options, escape); (void)showmatches(xp, p_wmnu, wim_list_next, wim_noselect_next); + if (wim_list_next) + *did_wild_list = TRUE; } } } diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 4e6b53515..abbd0d2c8 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -2829,6 +2829,8 @@ func Test_wildmenu_pum() call term_sendkeys(buf, "\<C-U>set wildmode=longest,list\<CR>") call term_sendkeys(buf, ":cn\<Tab>") call VerifyScreenDump(buf, 'Test_wildmenu_pum_30', {}) + call term_sendkeys(buf, "\<Tab>") + call VerifyScreenDump(buf, 'Test_wildmenu_pum_30', {}) call term_sendkeys(buf, "s") call VerifyScreenDump(buf, 'Test_wildmenu_pum_31', {}) diff --git a/src/version.c b/src/version.c index 06b7a5ba7..8e6494a5b 100644 --- a/src/version.c +++ b/src/version.c @@ -724,6 +724,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1739, /**/ 1738, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1uvA5D-0095zc-EK%40256bit.org.