refactor(grid): move out grid_* functions from screen.c

Also normalize some types. use "size_t" for unsigned array offsets.
Fix -Wconversion issues missed as screen.c is missing this check.
This commit is contained in:
bfredl
2022-05-08 13:04:18 +02:00
parent 0d3f17a6c3
commit df41d884a7
10 changed files with 777 additions and 752 deletions

View File

@@ -50,7 +50,7 @@ struct ScreenGrid {
schar_T *chars;
sattr_T *attrs;
unsigned *line_offset;
size_t *line_offset;
char_u *line_wraps;
// last column that was drawn (not cleared with the default background).