aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-09-20 15:16:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-09-21 07:11:07 +0000
commit49ed8b5e21c5a46b9e32ae941ab2dbc2a0f61b88 (patch)
tree91067afc293506b5f29370bdb7bbdb0ba66962d7 /selection.c
parentrender: double-buffer: optimization: skip clean rows (diff)
selection: set row->dirty when clearing the cell->attrs.clean bit
Closes #1715
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/selection.c b/selection.c
index 7540283b..91c851d2 100644
--- a/selection.c
+++ b/selection.c
@@ -965,6 +965,7 @@ mark_selected_region(struct terminal *term, pixman_box32_t *boxes,
*/
cell->attrs.clean = false;
cell->attrs.selected = false;
+ row->dirty = true;
continue;
}
@@ -972,8 +973,10 @@ mark_selected_region(struct terminal *term, pixman_box32_t *boxes,
xassert(c - j >= 0);
struct cell *cell = &row->cells[c - j];
- if (dirty_cells)
+ if (dirty_cells) {
cell->attrs.clean = false;
+ row->dirty = true;
+ }
cell->attrs.selected = selected;
}