mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-16 22:05:21 -05:00
render: reflow: no need to clear cells
We set initialize=true when allocating a new row. This initializes the cell to 0, with clean=1.
This commit is contained in:
parent
61b43620fc
commit
80e8f91270
1 changed files with 1 additions and 2 deletions
3
render.c
3
render.c
|
|
@ -1034,8 +1034,7 @@ reflow(struct terminal *term, struct row **new_grid, int new_cols, int new_rows,
|
|||
}
|
||||
}
|
||||
|
||||
new_row->cells[new_col_idx].attrs.clean = 1;
|
||||
new_row->cells[new_col_idx++] = (struct cell){0};
|
||||
new_col_idx++;
|
||||
}
|
||||
|
||||
empty_count = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue