sixel: fix assertion: image is allowed to cover the entire scrollback

This commit is contained in:
Daniel Eklöf 2021-05-08 19:02:33 +02:00
parent 2f01ecbadb
commit 9bd14c0fd2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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",