diff options
author | ZviRackover <zvirack@gmail.com> | 2018-06-29 22:31:20 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-08-06 20:48:07 +0300 |
commit | 10b6afd652a896144d87fb0db4389001293e7973 (patch) | |
tree | d77eedbc08dd9d8038c31bdcdfbcacc974157e61 /src/nvim/charset.c | |
parent | 1593ee7cf21f77168531c959fa9e73933b502d2e (diff) | |
download | rneovim-10b6afd652a896144d87fb0db4389001293e7973.tar.gz rneovim-10b6afd652a896144d87fb0db4389001293e7973.tar.bz2 rneovim-10b6afd652a896144d87fb0db4389001293e7973.zip |
Remove all occurences of the mb_ptr2char macro
First step towards implemening issue #7401.
The same can be done for all deprecated mb_ functions in follow-up
patches.
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 231bff26e8..f1b3be6b46 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -1379,7 +1379,7 @@ void getvvcol(win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, ptr = ml_get_buf(wp->w_buffer, pos->lnum, false); if (pos->col < (colnr_T)STRLEN(ptr)) { - int c = (*mb_ptr2char)(ptr + pos->col); + int c = utf_ptr2char(ptr + pos->col); if ((c != TAB) && vim_isprintc(c)) { endadd = (colnr_T)(char2cells(c) - 1); if (coladd > endadd) { |