aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-08-28 10:11:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-08-28 10:11:00 +0000
commit7996267d7bb095466d8f892a5df0b3de0de3f480 (patch)
tree7957deaae93fa0cef140ac7208d9ec68f61d4179
parentrender: multi-cell: decrement 'extra-cursor' pointer instead of indexing (diff)
term: cursor blink: dirty multi-cursor cells too
-rw-r--r--terminal.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 8c008af2..abb7a82d 100644
--- a/terminal.c
+++ b/terminal.c
@@ -525,6 +525,24 @@ cursor_refresh(struct terminal *term)
term->grid->cur_row->cells[term->grid->cursor.point.col].attrs.clean = 0;
term->grid->cur_row->dirty = true;
+
+ if (unlikely(term->multi_cursor.shapes != NULL)) {
+ int rect_count = 0;
+ const pixman_box32_t *boxes = pixman_region32_rectangles(&term->multi_cursor.active, &rect_count);
+
+ for (int i = 0; i < rect_count; i++) {
+ const pixman_box32_t *box = &boxes[i];
+
+ for (int r = box->y1; r < box->y2; r++) {
+ struct row *row = term->grid->rows[r];
+ row->dirty = true;
+
+ for (int c = box->x1; c < box->x2; c++)
+ row->cells[c].attrs.clean = false;
+ }
+ }
+ }
+
render_refresh(term);
}