csi: delete all sixels on the 'alt' grid when switching back to 'normal'

This commit is contained in:
Daniel Eklöf 2020-02-23 00:41:55 +01:00
parent 85684bc0c7
commit 7fd380f253
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

8
csi.c
View file

@ -1151,6 +1151,14 @@ csi_dispatch(struct terminal *term, uint8_t final)
tll_free(term->alt.damage);
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);
}
}
term_damage_all(term);
}
break;