aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/command.c
diff options
context:
space:
mode:
authorJames Tirta Halim <tirtajames45@gmail.com>2024-06-03 11:10:30 +0700
committerLewis Russell <me@lewisr.dev>2024-06-04 09:42:19 +0100
commit200e7ad1578619e78c664bd0c6be024168433412 (patch)
treec2387df2811637efb1f743693ed6b8ca172aeb74 /src/nvim/api/command.c
parent4b3845be2e497f96f855782d52dd1d02a4cabb6f (diff)
downloadrneovim-200e7ad1578619e78c664bd0c6be024168433412.tar.gz
rneovim-200e7ad1578619e78c664bd0c6be024168433412.tar.bz2
rneovim-200e7ad1578619e78c664bd0c6be024168433412.zip
fixup: apply the change on more files
Diffstat (limited to 'src/nvim/api/command.c')
-rw-r--r--src/nvim/api/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/command.c b/src/nvim/api/command.c
index 779e216c74..5ad439af9c 100644
--- a/src/nvim/api/command.c
+++ b/src/nvim/api/command.c
@@ -193,7 +193,7 @@ Dict(cmd) nvim_parse_cmd(String str, Dict(empty) *opts, Arena *arena, Error *err
} else {
nargs[0] = '0';
}
- nargs[1] = '\0';
+ nargs[1] = NUL;
PUT_KEY(result, cmd, nargs, CSTR_TO_ARENA_OBJ(arena, nargs));
char *addr;
@@ -391,7 +391,7 @@ String nvim_cmd(uint64_t channel_id, Dict(cmd) *cmd, Dict(cmd_opts) *opts, Arena
case kObjectTypeBoolean:
data_str = arena_alloc(arena, 2, false);
data_str[0] = elem.data.boolean ? '1' : '0';
- data_str[1] = '\0';
+ data_str[1] = NUL;
ADD_C(args, CSTR_AS_OBJ(data_str));
break;
case kObjectTypeBuffer: