mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
sixel: DECGRI (repeat) with a count of 0 should emit a single sixel
This commit is contained in:
parent
9150507209
commit
9e8d553a21
2 changed files with 4 additions and 1 deletions
2
sixel.c
2
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue