From f5c574cd94796561a9138a30eae0cbe724033644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 26 Dec 2021 16:25:52 +0100 Subject: [PATCH] csi: DECCRA: no need for a counter here --- csi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csi.c b/csi.c index 494ac957..b5d58f97 100644 --- a/csi.c +++ b/csi.c @@ -1911,7 +1911,7 @@ csi_dispatch(struct terminal *term, uint8_t final) memcpy(cell, copy[r], cell_count * sizeof(copy[r][0])); free(copy[r]); - for (int c = 0; c < cell_count; c++, cell++) + for (;cell < &row->cells[dst_left + cell_count]; cell++) cell->attrs.clean = 0; if (unlikely(row->extra != NULL)) {