sixel: revert to default state when an invalid DECGRI character is received

This commit is contained in:
Daniel Eklöf 2022-02-03 19:24:03 +01:00
parent 9e8d553a21
commit 58bbbb0a31
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1456,6 +1456,11 @@ decgri(struct terminal *term, uint8_t c)
term->sixel.state = SIXEL_DECSIXEL;
break;
}
default:
term->sixel.state = SIXEL_DECSIXEL;
sixel_put(term, c);
break;
}
}