From 792202bf2903025dcd91b1c6bf7b8195dca9a4bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 26 Feb 2021 09:25:27 +0100 Subject: [PATCH] =?UTF-8?q?grid:=20snapshot:=20don=E2=80=99t=20mark=20all?= =?UTF-8?q?=20cells=20as=20dirty=20-=20copy=20state=20from=20source=20grid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grid.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/grid.c b/grid.c index b9dc37b1..e92a3b01 100644 --- a/grid.c +++ b/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;