aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.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/ops.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/ops.c')
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index b8b639265c..1115bb2845 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -566,7 +566,7 @@ static void block_insert(oparg_T *oap, char_u *s, int b_insert, struct block_def
if (b_insert) {
off = utf_head_off(oldp, oldp + offset + spaces);
} else {
- off = (*mb_off_next)(oldp, oldp + offset);
+ off = mb_off_next(oldp, oldp + offset);
offset += off;
}
spaces -= off;