term: scroll: don't delete sixel images on the 'other' grid

This commit is contained in:
Daniel Eklöf 2020-02-23 00:41:10 +01:00
parent 2c7d98f2ee
commit 6d69311630
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1537,6 +1537,9 @@ term_scroll_partial(struct terminal *term, struct scroll_region region, int rows
tll_foreach(term->sixel_images, it) {
if (it->item.grid != term->grid)
continue;
/* Make it simple - remove the entire image if it starts
* getting scrolled out */
@ -1601,6 +1604,9 @@ term_scroll_reverse_partial(struct terminal *term,
selection_cancel(term);
tll_foreach(term->sixel_images, it) {
if (it->item.grid != term->grid)
continue;
/* Make it simple - remove the entire image if it starts
* getting scrolled out */