refactor(multibyte): eliminate mb_char2cells alias for utf_char2cells

This commit is contained in:
Björn Linse
2021-11-14 12:34:43 +01:00
parent 2ef9d2a663
commit 9f27e6cbe7
4 changed files with 11 additions and 12 deletions

View File

@@ -1837,7 +1837,7 @@ int op_replace(oparg_T *oap, int c)
// A double-wide character can be replaced only up to half the
// times.
if ((*mb_char2cells)(c) > 1) {
if (utf_char2cells(c) > 1) {
if ((numc & 1) && !bd.is_short) {
++bd.endspaces;
++n;