mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
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().
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user