diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-04-07 21:43:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 21:43:00 +0200 |
commit | 2d78e656b715119ca11d131a1a932f22f1b4ad36 (patch) | |
tree | 2cb91a5838a33174019389c2e8e5e537a04ad914 /src/nvim/keycodes.c | |
parent | 04933b1ea968f958d2541dd65fd33ebb503caac3 (diff) | |
download | rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.tar.gz rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.tar.bz2 rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.zip |
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/keycodes.c')
-rw-r--r-- | src/nvim/keycodes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/keycodes.c b/src/nvim/keycodes.c index 8eec9014f7..3dcfb6376d 100644 --- a/src/nvim/keycodes.c +++ b/src/nvim/keycodes.c @@ -1002,7 +1002,7 @@ char *replace_termcodes(const char *const from, const size_t from_len, char **co } // skip multibyte char correctly - for (i = utfc_ptr2len_len((char *)src, (int)(end - src) + 1); i > 0; i--) { + for (i = utfc_ptr2len_len(src, (int)(end - src) + 1); i > 0; i--) { // If the character is K_SPECIAL, replace it with K_SPECIAL // KS_SPECIAL KE_FILLER. if (*src == (char)K_SPECIAL) { |