From 2c7d98f2ee9cd0aece4627e8f638ff221b3be755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 23 Feb 2020 00:40:53 +0100 Subject: [PATCH] sixel: destroy_at_cursor(): skip images on 'other' grid --- sixel.c | 3 +++ 1 file changed, 3 insertions(+) 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;