aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_nfa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r--src/nvim/regexp_nfa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c
index 3be1f3d2f3..5a33113af2 100644
--- a/src/nvim/regexp_nfa.c
+++ b/src/nvim/regexp_nfa.c
@@ -564,7 +564,7 @@ static char_u *nfa_get_match_text(nfa_state_T *start)
s = ret;
while (p->c > 0) {
if (has_mbyte)
- s += (*mb_char2bytes)(p->c, s);
+ s += utf_char2bytes(p->c, s);
else
*s++ = p->c;
p = p->out;