diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-01-10 03:28:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 10:28:01 +0800 |
commit | ef6750332008b7b61dde9eeab0da454bf3323ebb (patch) | |
tree | 8b5f1e50ab2b5111022f8f9b410b377c1d2c94ad /src/nvim/usercmd.c | |
parent | f62da7381e9cd4dd4e926fda320132e8fccf6e48 (diff) | |
download | rneovim-ef6750332008b7b61dde9eeab0da454bf3323ebb.tar.gz rneovim-ef6750332008b7b61dde9eeab0da454bf3323ebb.tar.bz2 rneovim-ef6750332008b7b61dde9eeab0da454bf3323ebb.zip |
refactor: replace char_u with char 19 (#21241)
* 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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/usercmd.c b/src/nvim/usercmd.c index 0109c048ec..e175bd5b61 100644 --- a/src/nvim/usercmd.c +++ b/src/nvim/usercmd.c @@ -653,7 +653,7 @@ int parse_compl_arg(const char *value, int vallen, int *complp, uint32_t *argt, } static int uc_scan_attr(char *attr, size_t len, uint32_t *argt, long *def, int *flags, int *complp, - char_u **compl_arg, cmd_addr_T *addr_type_arg) + char **compl_arg, cmd_addr_T *addr_type_arg) FUNC_ATTR_NONNULL_ALL { char *p; @@ -764,7 +764,7 @@ invalid_count: return FAIL; } - if (parse_compl_arg(val, (int)vallen, complp, argt, (char **)compl_arg) + if (parse_compl_arg(val, (int)vallen, complp, argt, compl_arg) == FAIL) { return FAIL; } @@ -941,7 +941,7 @@ void ex_command(exarg_T *eap) while (*p == '-') { p++; end = skiptowhite(p); - if (uc_scan_attr(p, (size_t)(end - p), &argt, &def, &flags, &compl, (char_u **)&compl_arg, + if (uc_scan_attr(p, (size_t)(end - p), &argt, &def, &flags, &compl, &compl_arg, &addr_type_arg) == FAIL) { goto theend; } |