diff options
author | ZviRackover <zvirack@gmail.com> | 2018-08-15 22:02:33 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-08-15 22:02:33 +0300 |
commit | 2bddc4ca54e31a14b7e9799beda134217ae867e7 (patch) | |
tree | 9c91c11bc3f937f4dfec918e0693c47827a0ff61 /src/nvim/ops.c | |
parent | b5cfac089409faf17a290d4bfe1b669212e2984e (diff) | |
download | rneovim-2bddc4ca54e31a14b7e9799beda134217ae867e7.tar.gz rneovim-2bddc4ca54e31a14b7e9799beda134217ae867e7.tar.bz2 rneovim-2bddc4ca54e31a14b7e9799beda134217ae867e7.zip |
Remove occurences of mb_head_off
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 7defde731a..410cddb2be 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -525,7 +525,7 @@ static void block_insert(oparg_T *oap, char_u *s, int b_insert, struct block_def // Avoid starting halfway through a multi-byte character. if (b_insert) { - off = (*mb_head_off)(oldp, oldp + offset + spaces); + off = utf_head_off(oldp, oldp + offset + spaces); } else { off = (*mb_off_next)(oldp, oldp + offset); offset += off; @@ -2435,7 +2435,7 @@ static void op_yank_reg(oparg_T *oap, bool message, yankreg_T *reg, bool append) /* Don't add space for double-wide * char; endcol will be on last byte * of multi-byte char. */ - && (*mb_head_off)(p, p + endcol) == 0 + && utf_head_off(p, p + endcol) == 0 )) { if (oap->start.lnum == oap->end.lnum && oap->start.col == oap->end.col) { @@ -2992,7 +2992,7 @@ void do_put(int regname, yankreg_T *reg, int dir, long count, int flags) bd.startspaces = incr - bd.endspaces; --bd.textcol; delcount = 1; - bd.textcol -= (*mb_head_off)(oldp, oldp + bd.textcol); + bd.textcol -= utf_head_off(oldp, oldp + bd.textcol); if (oldp[bd.textcol] != TAB) { /* Only a Tab can be split into spaces. Other * characters will have to be moved to after the |