aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-09 09:52:57 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-09 09:52:57 +0800
commitff81725ff03e8885df3c292162acfb6305fda14f (patch)
tree467712d869a8cbd2b5c6547f1b5348d0ff7ff597 /src/nvim/buffer.c
parente16ec0be22384a2ff7faef26cf9c06136c947a04 (diff)
downloadrneovim-ff81725ff03e8885df3c292162acfb6305fda14f.tar.gz
rneovim-ff81725ff03e8885df3c292162acfb6305fda14f.tar.bz2
rneovim-ff81725ff03e8885df3c292162acfb6305fda14f.zip
refactor(mbyte.c): add const qualifiers
This only touches functions that do not return a pointer. Also add a note about the differences between mb_head_off() and utf_head_off().
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 bb8483f644..96ddd9a2f5 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -3327,7 +3327,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 += mb_tail_off(buf_p, buf_p + len) + 1;
buf_p += len;
}
STRCPY(icon_str, buf_p);