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

@@ -3288,7 +3288,7 @@ void maketitle(void)
len = (int)STRLEN(buf_p);
if (len > 100) {
len -= 100;
len += mb_tail_off(buf_p, buf_p + len) + 1;
len += utf_cp_tail_off(buf_p, buf_p + len) + 1;
buf_p += len;
}
STRCPY(icon_str, buf_p);