diff options
author | Dundar Göc <gocdundar@gmail.com> | 2022-08-26 23:11:25 +0200 |
---|---|---|
committer | dundargoc <gocdundar@gmail.com> | 2022-09-09 21:02:42 +0200 |
commit | c5322e752e9e568de907f7a1ef733bbfe342140c (patch) | |
tree | 2814462ea918c649852cc0c6f942a09f77998aad /src/nvim/usercmd.c | |
parent | 9b0e1256e25d387bf65cb9baa1edd99fbc128724 (diff) | |
download | rneovim-c5322e752e9e568de907f7a1ef733bbfe342140c.tar.gz rneovim-c5322e752e9e568de907f7a1ef733bbfe342140c.tar.bz2 rneovim-c5322e752e9e568de907f7a1ef733bbfe342140c.zip |
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/usercmd.c')
-rw-r--r-- | src/nvim/usercmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/usercmd.c b/src/nvim/usercmd.c index 3726273d28..6d6ba2466e 100644 --- a/src/nvim/usercmd.c +++ b/src/nvim/usercmd.c @@ -280,7 +280,7 @@ char *get_user_commands(expand_T *xp FUNC_ATTR_UNUSED, int idx) char *name = USER_CMD(idx)->uc_name; for (int i = 0; i < buf->b_ucmds.ga_len; i++) { - if (STRCMP(name, USER_CMD_GA(&buf->b_ucmds, i)->uc_name) == 0) { + if (strcmp(name, USER_CMD_GA(&buf->b_ucmds, i)->uc_name) == 0) { // global command is overruled by buffer-local one return ""; } @@ -1006,7 +1006,7 @@ void ex_delcommand(exarg_T *eap) for (;;) { for (i = 0; i < gap->ga_len; i++) { cmd = USER_CMD_GA(gap, i); - res = STRCMP(arg, cmd->uc_name); + res = strcmp(arg, cmd->uc_name); if (res <= 0) { break; } |