aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--csi.c2
1 files changed, 1 insertions, 1 deletions
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)) {