selection: set row->dirty when clearing the cell->attrs.clean bit

Closes #1715
This commit is contained in:
Daniel Eklöf 2024-09-20 17:16:45 +02:00
parent 798b44934f
commit 49ed8b5e21
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;
}