aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorZviRackover <zvirack@gmail.com>2018-08-15 22:02:33 +0300
committerZviRackover <zvirack@gmail.com>2018-08-15 22:02:33 +0300
commit2bddc4ca54e31a14b7e9799beda134217ae867e7 (patch)
tree9c91c11bc3f937f4dfec918e0693c47827a0ff61 /src/nvim/misc1.c
parentb5cfac089409faf17a290d4bfe1b669212e2984e (diff)
downloadrneovim-2bddc4ca54e31a14b7e9799beda134217ae867e7.tar.gz
rneovim-2bddc4ca54e31a14b7e9799beda134217ae867e7.tar.bz2
rneovim-2bddc4ca54e31a14b7e9799beda134217ae867e7.zip
Remove occurences of mb_head_off
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 84d8c995a6..93886351ac 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -548,7 +548,7 @@ open_line (
/* blank-out any other chars from the old leader. */
while (--p >= leader) {
- int l = mb_head_off(leader, p);
+ int l = utf_head_off(leader, p);
if (l > 1) {
p -= l;
@@ -1648,7 +1648,7 @@ int del_bytes(colnr_T count, bool fixpos_arg, bool use_delcombine)
curwin->w_cursor.coladd = 0;
if (has_mbyte)
curwin->w_cursor.col -=
- (*mb_head_off)(oldp, oldp + curwin->w_cursor.col);
+ utf_head_off(oldp, oldp + curwin->w_cursor.col);
}
count = oldlen - col;
movelen = 1;