aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/command.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-11 11:05:57 +0100
committerGitHub <noreply@github.com>2023-02-11 11:05:57 +0100
commit4be6c6cf0ddf5e31d4103cb5df06651ba6f4897b (patch)
tree70f45c47ebd0d29ae8060c39cce39b853edf3760 /src/nvim/api/command.c
parentee87b848a2dc7ca3d3cfb871afcd351274f612dc (diff)
downloadrneovim-4be6c6cf0ddf5e31d4103cb5df06651ba6f4897b.tar.gz
rneovim-4be6c6cf0ddf5e31d4103cb5df06651ba6f4897b.tar.bz2
rneovim-4be6c6cf0ddf5e31d4103cb5df06651ba6f4897b.zip
refactor: replace char_u with char (#21901)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/api/command.c')
-rw-r--r--src/nvim/api/command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/api/command.c b/src/nvim/api/command.c
index 7e7df3ee0f..f09a00e5c2 100644
--- a/src/nvim/api/command.c
+++ b/src/nvim/api/command.c
@@ -127,7 +127,7 @@ Dictionary nvim_parse_cmd(String str, Dictionary opts, Error *err)
// otherwise split arguments by whitespace.
if (ea.argt & EX_NOSPC) {
if (*ea.arg != NUL) {
- ADD(args, STRING_OBJ(cstrn_to_string((char *)ea.arg, length)));
+ ADD(args, STRING_OBJ(cstrn_to_string(ea.arg, length)));
}
} else {
size_t end = 0;
@@ -153,9 +153,9 @@ Dictionary nvim_parse_cmd(String str, Dictionary opts, Error *err)
}
if (cmd != NULL) {
- PUT(result, "cmd", CSTR_TO_OBJ((char *)cmd->uc_name));
+ PUT(result, "cmd", CSTR_TO_OBJ(cmd->uc_name));
} else {
- PUT(result, "cmd", CSTR_TO_OBJ((char *)get_command_name(NULL, ea.cmdidx)));
+ PUT(result, "cmd", CSTR_TO_OBJ(get_command_name(NULL, ea.cmdidx)));
}
if (ea.argt & EX_RANGE) {
@@ -237,7 +237,7 @@ Dictionary nvim_parse_cmd(String str, Dictionary opts, Error *err)
break;
}
PUT(result, "addr", CSTR_TO_OBJ(addr));
- PUT(result, "nextcmd", CSTR_TO_OBJ((char *)ea.nextcmd));
+ PUT(result, "nextcmd", CSTR_TO_OBJ(ea.nextcmd));
Dictionary mods = ARRAY_DICT_INIT;