aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-30 06:32:14 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-30 06:33:09 +0800
commite6e9879cb3eecf9d5c3f3964259a89dc36f60d52 (patch)
treef1ba2d3514378e1f3fa44b538c8dda004ae81de1 /src/nvim/ex_getln.c
parent2c83d7b2ddf74966777e3bb72230a3605b92ffe2 (diff)
downloadrneovim-e6e9879cb3eecf9d5c3f3964259a89dc36f60d52.tar.gz
rneovim-e6e9879cb3eecf9d5c3f3964259a89dc36f60d52.tar.bz2
rneovim-e6e9879cb3eecf9d5c3f3964259a89dc36f60d52.zip
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) https://github.com/vim/vim/commit/54acb90d9e672315e3bd13f8dc71f828df97c868
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 7dac5fbe7e..66c3327ce3 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -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;
}