sixel: assert upper pixel of last sixel maps to last image row, *or lower*

This commit is contained in:
Daniel Eklöf 2023-06-22 22:12:02 +02:00
parent c15e75357a
commit 2388015b10
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1084,6 +1084,8 @@ sixel_unhook(struct terminal *term)
const int upper_pixel_last_sixel = (sixel_rows - 1) * sixel_row_height;
const int term_rows = (upper_pixel_last_sixel + term->cell_height - 1) / term->cell_height;
xassert(term_rows <= image.rows);
row -= (image.rows - term_rows);
term_cursor_to(