refactor: replace char_u with char 4 (#19987)

* refactor: replace char_u with char

Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
dundargoc
2022-08-30 14:52:09 +02:00
committed by GitHub
parent 9397e70b9e
commit 2828aae7b4
66 changed files with 499 additions and 509 deletions

View File

@@ -262,7 +262,7 @@ int linetabsize_col(int startcol, char *s)
cts.cts_vcol += lbr_chartabsize_adv(&cts);
}
clear_chartabsize_arg(&cts);
return (int)cts.cts_vcol;
return cts.cts_vcol;
}
/// Like linetabsize(), but for a given window instead of the current one.
@@ -530,7 +530,7 @@ static int win_nolbr_chartabsize(chartabsize_T *cts, int *headp)
wp->w_buffer->b_p_ts,
wp->w_buffer->b_p_vts_array);
}
n = ptr2cells((char *)s);
n = ptr2cells(s);
// Add one cell for a double-width character in the last column of the
// window, displayed with a ">".