aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 23:40:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 23:40:53 +0000
commit2c7d98f2ee9cd0aece4627e8f638ff221b3be755 (patch)
tree187b2f351b1bf797c6f20b2ea04887dba0843367
parentsixel: track which grid image was created on (diff)
sixel: destroy_at_cursor(): skip images on 'other' grid
-rw-r--r--sixel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sixel.c b/sixel.c
index 34bdb585..6a0b2982 100644
--- a/sixel.c
+++ b/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;