refactor: rename function prefix mb to the more accurate utf_cp (#19590)

The "cp" stands for codepoint.

Closes https://github.com/neovim/neovim/issues/7401
This commit is contained in:
dundargoc
2022-08-02 11:52:33 +02:00
committed by GitHub
parent 0a049c322f
commit c223875a65
4 changed files with 13 additions and 12 deletions

View File

@@ -1828,7 +1828,7 @@ static void mb_adjust_opend(oparg_T *oap)
{
if (oap->inclusive) {
char *p = (char *)ml_get(oap->end.lnum);
oap->end.col += mb_tail_off(p, p + oap->end.col);
oap->end.col += utf_cp_tail_off(p, p + oap->end.col);
}
}