From 6f84b79810102708ec42a371e7a4a3446c741d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 22 Feb 2020 00:19:38 +0100 Subject: [PATCH] sixel: always bump row on unhook --- sixel.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sixel.c b/sixel.c index 240754f7..4bb7a28e 100644 --- a/sixel.c +++ b/sixel.c @@ -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,