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/ex_docmd.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/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 0ab0178d24..0ff0b1b574 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -2900,7 +2900,7 @@ const char * set_one_cmd_context( p = (const char *)xp->xp_pattern; while (*p != NUL) { if (has_mbyte) { - c = mb_ptr2char((const char_u *)p); + c = utf_ptr2char((const char_u *)p); } else { c = (uint8_t)(*p); } @@ -2922,7 +2922,7 @@ const char * set_one_cmd_context( len = 0; /* avoid getting stuck when space is in 'isfname' */ while (*p != NUL) { if (has_mbyte) { - c = mb_ptr2char((const char_u *)p); + c = utf_ptr2char((const char_u *)p); } else { c = *p; } |