aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/csi.c b/csi.c
index 9b00c3ef..6147f27b 100644
--- a/csi.c
+++ b/csi.c
@@ -1143,11 +1143,9 @@ csi_dispatch(struct terminal *term, uint8_t final)
tll_free(term->alt.scroll_damage);
/* Delete all sixel images on the alt screen */
- tll_foreach(term->sixel_images, it) {
- if (it->item.grid == &term->alt) {
- sixel_destroy(&it->item);
- tll_remove(term->sixel_images, it);
- }
+ tll_foreach(term->alt.sixel_images, it) {
+ sixel_destroy(&it->item);
+ tll_remove(term->alt.sixel_images, it);
}
term_damage_all(term);