From 9e8d553a21c3a96ede2c830de695f6a255538cdd Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 3 Feb 2022 19:23:43 +0100 Subject: sixel: DECGRI (repeat) with a count of 0 should emit a single sixel --- sixel.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sixel.c') 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; } -- cgit v1.3