sixel: destroy_at_cursor(): skip images on 'other' grid

This commit is contained in:
Daniel Eklöf 2020-02-23 00:40:53 +01:00
parent a2b4bcbd4f
commit 2c7d98f2ee
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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