Merge pull request #17342 from zeertzjq/mbyte-const

refactor(mbyte.c): add const qualifiers
This commit is contained in:
zeertzjq
2022-02-10 05:10:05 +08:00
committed by GitHub
3 changed files with 19 additions and 26 deletions

View File

@@ -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;