mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-09 10:06:20 -05:00
term: scroll: don't delete sixel images on the 'other' grid
This commit is contained in:
parent
2c7d98f2ee
commit
6d69311630
1 changed files with 6 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue