diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-09 09:52:57 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-02-09 09:52:57 +0800 |
commit | ff81725ff03e8885df3c292162acfb6305fda14f (patch) | |
tree | 467712d869a8cbd2b5c6547f1b5348d0ff7ff597 /src/nvim/buffer.c | |
parent | e16ec0be22384a2ff7faef26cf9c06136c947a04 (diff) | |
download | rneovim-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.c | 2 |
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); |