aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vimscript.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-09 11:49:32 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-16 13:27:06 +0200
commitf0148de7907ec297647816d51c79745be729439e (patch)
tree1aaaa4bbb1cff930178e05dd8b0f72482db166e6 /src/nvim/api/vimscript.c
parent7adecbcd29e17b71bf43e50a444724da184c04a7 (diff)
downloadrneovim-f0148de7907ec297647816d51c79745be729439e.tar.gz
rneovim-f0148de7907ec297647816d51c79745be729439e.tar.bz2
rneovim-f0148de7907ec297647816d51c79745be729439e.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/api/vimscript.c')
-rw-r--r--src/nvim/api/vimscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/vimscript.c b/src/nvim/api/vimscript.c
index 506b3e7f10..42101af7f0 100644
--- a/src/nvim/api/vimscript.c
+++ b/src/nvim/api/vimscript.c
@@ -1058,7 +1058,7 @@ String nvim_cmd(uint64_t channel_id, Dict(cmd) *cmd, Dict(cmd_opts) *opts, Error
if (p != NULL && ea.cmdidx == CMD_SIZE && ASCII_ISUPPER(*ea.cmd)
&& has_event(EVENT_CMDUNDEFINED)) {
p = xstrdup(cmdname);
- int ret = apply_autocmds(EVENT_CMDUNDEFINED, (char_u *)p, (char_u *)p, true, NULL);
+ int ret = apply_autocmds(EVENT_CMDUNDEFINED, p, p, true, NULL);
xfree(p);
// If the autocommands did something and didn't cause an error, try
// finding the command again.