aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-08-02 11:52:33 +0200
committerGitHub <noreply@github.com>2022-08-02 11:52:33 +0200
commitc223875a65dd703e42956e064239369817faa0b2 (patch)
tree1fdb2f144ef4d9e8650f87344149c00a5eb47b8d /src/nvim/buffer.c
parent0a049c322fda5f2bb124429086c2713ff99c7142 (diff)
downloadrneovim-c223875a65dd703e42956e064239369817faa0b2.tar.gz
rneovim-c223875a65dd703e42956e064239369817faa0b2.tar.bz2
rneovim-c223875a65dd703e42956e064239369817faa0b2.zip
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
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 328a72476a..6dd71e92a6 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -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);