diff options
author | ZviRackover <zvirack@gmail.com> | 2018-09-02 00:58:30 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-09-09 10:45:50 +0300 |
commit | cbdbc4f63d68a6b17b9eea5c67130e37d3d0f278 (patch) | |
tree | 5d82993e830a807647ec81aad1d5a391e4490cb0 /src/nvim/regexp.c | |
parent | 50eadfe2e991a0bb5fe0f98377d91702f0a20492 (diff) | |
download | rneovim-cbdbc4f63d68a6b17b9eea5c67130e37d3d0f278.tar.gz rneovim-cbdbc4f63d68a6b17b9eea5c67130e37d3d0f278.tar.bz2 rneovim-cbdbc4f63d68a6b17b9eea5c67130e37d3d0f278.zip |
Refactor: Remove occurences of mb_char2bytes
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index bbc161ee3e..7152a38815 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -2543,7 +2543,7 @@ static void regmbc(int c) if (regcode == JUST_CALC_SIZE) regsize += (*mb_char2len)(c); else - regcode += (*mb_char2bytes)(c, regcode); + regcode += utf_char2bytes(c, regcode); } /* @@ -6763,7 +6763,7 @@ static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, int totlen = mb_ptr2len(src - 1); if (copy) - mb_char2bytes(cc, dst); + utf_char2bytes(cc, dst); dst += mb_char2len(cc) - 1; if (enc_utf8) { int clen = utf_ptr2len(src - 1); @@ -6866,7 +6866,7 @@ static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, s += l; len -= l; if (copy) - mb_char2bytes(cc, dst); + utf_char2bytes(cc, dst); dst += mb_char2len(cc) - 1; } else if (copy) *dst = cc; |