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

@@ -3430,7 +3430,7 @@ win_line (
// Found last space before word: check for line break.
if (wp->w_p_lbr && c0 == c && vim_isbreak(c)
&& !vim_isbreak((int)(*ptr))) {
int mb_off = has_mbyte ? (*mb_head_off)(line, ptr - 1) : 0;
int mb_off = has_mbyte ? utf_head_off(line, ptr - 1) : 0;
char_u *p = ptr - (mb_off + 1);
// TODO: is passing p for start of the line OK?
n_extra = win_lbr_chartabsize(wp, line, p, (colnr_T)vcol, NULL) - 1;