sixel: always bump row on unhook

This commit is contained in:
Daniel Eklöf 2020-02-22 00:19:38 +01:00
parent da76b8cbf8
commit 6f84b79810
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

10
sixel.c
View file

@ -45,12 +45,10 @@ sixel_unhook(struct terminal *term)
LOG_DBG("generating %dx%d pixman image", term->sixel.row * 6, term->sixel.max_col);
if (term->sixel.col >= 0) {
if (term->sixel.col > term->sixel.max_col)
term->sixel.max_col = term->sixel.col;
term->sixel.row++;
term->sixel.col = 0;
}
if (term->sixel.col > term->sixel.max_col)
term->sixel.max_col = term->sixel.col;
term->sixel.row++;
term->sixel.col = 0;
struct sixel image = {
.data = term->sixel.image,