aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-10 05:10:05 +0800
committerGitHub <noreply@github.com>2022-02-10 05:10:05 +0800
commit90f2a851c761cde94eeb3e9dc7912413c8f04661 (patch)
tree373c418a94bde5472efcb82fd524dd928246768f /src/nvim/ops.c
parentaff0ddd784bed586e359fc4b16e86ab214cf6039 (diff)
parentff81725ff03e8885df3c292162acfb6305fda14f (diff)
downloadrneovim-90f2a851c761cde94eeb3e9dc7912413c8f04661.tar.gz
rneovim-90f2a851c761cde94eeb3e9dc7912413c8f04661.tar.bz2
rneovim-90f2a851c761cde94eeb3e9dc7912413c8f04661.zip
Merge pull request #17342 from zeertzjq/mbyte-const
refactor(mbyte.c): add const qualifiers
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 f8ab6b2556..cf1fd29c9e 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -574,7 +574,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;