mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +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:
@@ -701,7 +701,7 @@ static int read_redo(int init, int old_redo)
|
||||
buf[i] = (char_u)c;
|
||||
if (i == n - 1) { // last byte of a character
|
||||
if (n != 1) {
|
||||
c = (*mb_ptr2char)(buf);
|
||||
c = utf_ptr2char(buf);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1486,7 +1486,7 @@ int vgetc(void)
|
||||
}
|
||||
}
|
||||
no_mapping--;
|
||||
c = (*mb_ptr2char)(buf);
|
||||
c = utf_ptr2char(buf);
|
||||
}
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user