diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-08-31 08:28:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-08-31 08:28:10 +0000 |
| commit | 7c4ac3f3485aadb4a0a40701671b86384e2260af (patch) | |
| tree | e489e44e7aac10bfa2d11f5189ecbdfe41616af0 /csi.c | |
| parent | multi-cursor: refactor: add function for dirtying/damaging all multi-cursors (diff) | |
csi: multi-cursor: refactor: loop boxes directly, without indexingmulti-cursor
Diffstat (limited to 'csi.c')
| -rw-r--r-- | csi.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2334,8 +2334,7 @@ csi_dispatch(struct terminal *term, uint8_t final) pixman_region32_rectangles(&modified, &rect_count); /* Set shape, and dirty affected cells */ - for (int j = 0; j < rect_count; j++) { - const pixman_box32_t *box = &boxes[j]; + for (const pixman_box32_t *box = boxes; box < &boxes[rect_count]; box++) { for (int r = box->y1; r < box->y2; r++) { struct row *row = grid_row(term->grid, r); xassert(row != NULL); |
