mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
sixel: erase: fix clearing of cell->attrs.clean
When erasing a sixel, the cells underneath it must be marked as 'dirty', in order to be re-rendered. This was not being done correctly; the for loop loops *from* the start col, meaning the *end* col is *not* sixel->pos.col, as that's the *number* of columns, not the *end* column.
This commit is contained in:
parent
c006ac3a07
commit
4aa67e464a
1 changed files with 1 additions and 1 deletions
2
sixel.c
2
sixel.c
|
|
@ -180,7 +180,7 @@ sixel_erase(struct terminal *term, struct sixel *sixel)
|
|||
|
||||
row->dirty = true;
|
||||
|
||||
for (int c = sixel->pos.col; c < min(sixel->cols, term->cols); c++)
|
||||
for (int c = sixel->pos.col; c < min(sixel->pos.col + sixel->cols, term->cols); c++)
|
||||
row->cells[c].attrs.clean = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue