diff --git a/terminal.c b/terminal.c index aa3dedd3..8504a45b 100644 --- a/terminal.c +++ b/terminal.c @@ -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 */