aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;