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/cmdexpand.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/cmdexpand.c')
-rw-r--r-- | src/nvim/cmdexpand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index 2952d631e4..d603e964e5 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -458,12 +458,12 @@ static void redraw_wildmenu(expand_T *xp, int num_matches, char **matches, int m s += skip_wildmenu_char(xp, (char_u *)s); clen += ptr2cells(s); if ((l = utfc_ptr2len(s)) > 1) { - strncpy((char *)buf + len, s, (size_t)l); // NOLINT(runtime/printf) + strncpy(buf + len, s, (size_t)l); // NOLINT(runtime/printf) s += l - 1; len += l; } else { STRCPY(buf + len, transchar_byte((uint8_t)(*s))); - len += (int)strlen((char *)buf + len); + len += (int)strlen(buf + len); } } } |