mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
grid: snapshot: don’t mark all cells as dirty - copy state from source grid
This commit is contained in:
parent
ed47a65afc
commit
792202bf29
1 changed files with 1 additions and 3 deletions
4
grid.c
4
grid.c
|
|
@ -41,10 +41,8 @@ grid_snapshot(const struct grid *grid)
|
|||
clone_row->linebreak = row->linebreak;
|
||||
clone_row->dirty = row->dirty;
|
||||
|
||||
for (int c = 0; c < grid->num_cols; c++) {
|
||||
for (int c = 0; c < grid->num_cols; c++)
|
||||
clone_row->cells[c] = row->cells[c];
|
||||
clone_row->cells[c].attrs.clean = 0;
|
||||
}
|
||||
|
||||
if (row->extra != NULL) {
|
||||
const struct row_data *extra = row->extra;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue