From 0039ba04b0c907a6d23a0c07ed272f38c58c9739 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 14 Nov 2021 12:40:46 +0100 Subject: refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len --- src/nvim/ex_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/ex_cmds.c') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 1bd9411fa5..145fe33284 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -3771,7 +3771,7 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout, bool do_buf_event, handle skip_match = true; } else { // search for a match at next column - matchcol += mb_ptr2len(sub_firstline + matchcol); + matchcol += utfc_ptr2len(sub_firstline + matchcol); } // match will be pushed to preview_lines, bring it into a proper state current_match.start.col = matchcol; -- cgit