aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.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/getchar.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/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index b57e1f6558..8c6c3dfd7e 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -2133,7 +2133,7 @@ static int vgetorpeek(int advance)
/* Correct when the cursor is on the right halve
* of a double-wide character. */
ptr = get_cursor_line_ptr();
- col -= (*mb_head_off)(ptr, ptr + col);
+ col -= utf_head_off(ptr, ptr + col);
if ((*mb_ptr2cells)(ptr + col) > 1)
--curwin->w_wcol;
}