mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 21:36:05 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user