aboutsummaryrefslogtreecommitdiff
path: root/sixel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sixel.c')
-rw-r--r--sixel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sixel.c b/sixel.c
index 294864fd..187f1348 100644
--- a/sixel.c
+++ b/sixel.c
@@ -1559,6 +1559,9 @@ resize(struct terminal *term, int new_width_mutable, int new_height_mutable)
new_height_mutable = term->sixel.max_height;
}
+ if (unlikely(new_height_mutable == 0)) {
+ new_height_mutable = 6 * term->sixel.pan;
+ }
uint32_t *old_data = term->sixel.image.data;
const int old_width = term->sixel.image.width;