Remove occurences of mb_head_off

This commit is contained in:
ZviRackover
2018-08-15 22:02:33 +03:00
parent b5cfac0894
commit 2bddc4ca54
20 changed files with 40 additions and 41 deletions

View File

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