diff options
Diffstat (limited to 'src/sixel-context.hh')
-rw-r--r-- | src/sixel-context.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sixel-context.hh b/src/sixel-context.hh index 60114991..264f3046 100644 --- a/src/sixel-context.hh +++ b/src/sixel-context.hh @@ -533,14 +533,17 @@ private: * args[0]: 1 * * References: DEC PPLV2 ยง 5.8 + * DEC STD 070 */ /* DEC terminals limited the repetition count to 255, but the SIXEL * test data includes repeat counts much greater. Since we limit to * k_max_width anyway when executing the repeat on the next sixel, * don't limit here. + * + * A repeat count of 0 is treated like 1. */ - m_repeat_count = seq.param(0, 1); + m_repeat_count = seq.param(0, 1) ? : 1; } void |