vim-patch:9.0.0320: command line type of CmdlineChange differs from getcmdtype()

Problem:    Command line type of CmdlineChange differs from getcmdtype().
Solution:   Use the same type. (closes vim/vim#11005)
54acb90d9e
This commit is contained in:
zeertzjq
2022-08-30 06:32:14 +08:00
parent 2c83d7b2dd
commit e6e9879cb3
2 changed files with 14 additions and 1 deletions

View File

@@ -4042,7 +4042,7 @@ static int set_cmdline_str(const char *str, int pos)
redrawcmd();
// Trigger CmdlineChanged autocommands.
do_autocmd_cmdlinechanged(ccline.cmdfirstc == NUL ? '-' : ccline.cmdfirstc);
do_autocmd_cmdlinechanged(get_cmdline_type());
return 0;
}