diff options
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 23948df769..fcfadbfd28 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -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); |