aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-08 17:02:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-08 18:28:16 +0000
commit9bd14c0fd217721d32f52808878ed7e89bb82a16 (patch)
treee69ddcff7d857dcf0d500f1637a7de356e73dab5
parentMerge branch 'osc8-mem-leak' (diff)
sixel: fix assertion: image is allowed to cover the entire scrollback
-rw-r--r--sixel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sixel.c b/sixel.c
index 0e8c58d5..910e4a5f 100644
--- a/sixel.c
+++ b/sixel.c
@@ -799,7 +799,7 @@ sixel_unhook(struct terminal *term)
.opaque = !term->sixel.transparent_bg,
};
- xassert(image.rows < term->grid->num_rows);
+ xassert(image.rows <= term->grid->num_rows);
xassert(image.pos.row + image.rows - 1 < term->grid->num_rows);
LOG_DBG("generating %dx%d pixman image at %d-%d",