diff options
author | ZviRackover <zvirack@gmail.com> | 2018-08-29 21:15:32 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-08-31 22:45:10 +0300 |
commit | 1c03a064870af18f50d4f11cf4c7532c5cfae495 (patch) | |
tree | e9d2c6c5509ad8ae700b5a71cc920c2abd0c3833 /src/nvim/keymap.c | |
parent | e30ccd56d9543afd5e66feec984a9dc8bc6be38e (diff) | |
download | rneovim-1c03a064870af18f50d4f11cf4c7532c5cfae495.tar.gz rneovim-1c03a064870af18f50d4f11cf4c7532c5cfae495.tar.bz2 rneovim-1c03a064870af18f50d4f11cf4c7532c5cfae495.zip |
Refactor: remove mb_ptr2len_len, mb_ptr2cells and mb_ptr2cells_len
Remove occurences of these macros.
Diffstat (limited to 'src/nvim/keymap.c')
-rw-r--r-- | src/nvim/keymap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index 628bfef221..8997778125 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -898,7 +898,7 @@ char_u *replace_termcodes(const char_u *from, const size_t from_len, } // skip multibyte char correctly - for (i = (*mb_ptr2len_len)(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 compiled with the GUI replace CSI with K_CSI. |