From ff81725ff03e8885df3c292162acfb6305fda14f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 9 Feb 2022 09:52:57 +0800 Subject: 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(). --- src/nvim/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/buffer.c') 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); -- cgit