mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
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.
This commit is contained in:
@@ -15896,7 +15896,7 @@ static void f_strgetchar(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
|
||||
while (charidx >= 0 && byteidx < len) {
|
||||
if (charidx == 0) {
|
||||
rettv->vval.v_number = mb_ptr2char((const char_u *)str + byteidx);
|
||||
rettv->vval.v_number = utf_ptr2char((const char_u *)str + byteidx);
|
||||
break;
|
||||
}
|
||||
charidx--;
|
||||
|
Reference in New Issue
Block a user