mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
sixel: destroy_at_cursor(): skip images on 'other' grid
This commit is contained in:
parent
a2b4bcbd4f
commit
2c7d98f2ee
1 changed files with 3 additions and 0 deletions
3
sixel.c
3
sixel.c
|
|
@ -58,6 +58,9 @@ sixel_delete_at_cursor(struct terminal *term)
|
|||
const int row = term->grid->offset + term->cursor.point.row;
|
||||
|
||||
tll_foreach(term->sixel_images, it) {
|
||||
if (it->item.grid != term->grid)
|
||||
continue;
|
||||
|
||||
const int start = it->item.pos.row;
|
||||
const int end = start + it->item.rows;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue