fix(cmdline): don't treat c_CTRL-D as wildmenu (#36067)

Remove WM_LIST, which was previously added in #7110, but now statusline
and messages no longer interfere with each other thanks to the message
grid, etc., and terminal refreshing no longer calls update_screen()
directly since #9883.

Tests from #7110 and #10107 still pass.
This commit is contained in:
zeertzjq
2025-10-08 06:29:00 +08:00
committed by GitHub
parent 9e1d3f4870
commit 236d831d77
4 changed files with 33 additions and 8 deletions

View File

@@ -2076,7 +2076,6 @@ static int command_line_handle_key(CommandLineState *s)
break; // Use ^D as normal char instead
}
wild_menu_showing = WM_LIST;
redrawcmd();
return 1; // don't do incremental search now
@@ -4976,7 +4975,7 @@ void get_user_input(const typval_T *const argvars, typval_T *const rettv, const
void f_wildtrigger(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
{
if (!(State & MODE_CMDLINE) || char_avail()
|| (wild_menu_showing != 0 && wild_menu_showing != WM_LIST)
|| wild_menu_showing
|| cmdline_pum_active()) {
return;
}