aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sixel.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sixel.c b/sixel.c
index 07b16031..e584d677 100644
--- a/sixel.c
+++ b/sixel.c
@@ -246,11 +246,21 @@ sixel_scroll_up(struct terminal *term, int rows)
struct sixel *six = &it->item;
int six_start = rebase_row(term, six->pos.row);
+
if (six_start < rows) {
sixel_erase(term, six);
tll_remove(term->grid->sixel_images, it);
- } else
- break;
+ } else {
+ /*
+ * Unfortunately, we cannot break here.
+ *
+ * The sixels are sorted on their *end* row. This means
+ * there may be a sixel with a top row that will be
+ * scrolled out *anywhere* in the list (think of a huuuuge
+ * sixel that covers the entire scrollback)
+ */
+ //break;
+ }
}
verify_sixels(term);