Refactor: Remove occurences of mb_char2bytes

This commit is contained in:
ZviRackover
2018-09-02 00:58:30 +03:00
parent 50eadfe2e9
commit cbdbc4f63d
17 changed files with 54 additions and 55 deletions

View File

@@ -1739,7 +1739,7 @@ int op_replace(oparg_T *oap, int c)
int newp_len = bd.textcol + bd.startspaces;
if (has_mbyte) {
while (--num_chars >= 0) {
newp_len += (*mb_char2bytes)(c, newp + newp_len);
newp_len += utf_char2bytes(c, newp + newp_len);
}
} else {
memset(newp + newp_len, c, (size_t)numc);