aboutsummaryrefslogtreecommitdiff
path: root/sixel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sixel.c')
-rw-r--r--sixel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sixel.c b/sixel.c
index 335700c5..fbd0f077 100644
--- a/sixel.c
+++ b/sixel.c
@@ -1451,6 +1451,8 @@ decgri(struct terminal *term, uint8_t c)
unsigned count = term->sixel.param;
if (likely(count > 0))
sixel_add_many(term, c - 63, count);
+ else if (unlikely(count == 0))
+ sixel_add_many(term, c - 63, 1);
term->sixel.state = SIXEL_DECSIXEL;
break;
}