aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-21 23:19:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-21 23:19:38 +0000
commit6f84b79810102708ec42a371e7a4a3446c741d03 (patch)
treee9a9e65c100b09bcc8c45840805aff4a24df0e92
parentsixel: ugly hack to remove over-written sixel images (diff)
sixel: always bump row on unhook
-rw-r--r--sixel.c10
1 files 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,