mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
selection: set row->dirty when clearing the cell->attrs.clean bit
Closes #1715
This commit is contained in:
parent
798b44934f
commit
49ed8b5e21
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue