Only reset urf8 state when transitioning into normal

This commit is contained in:
Kovid Goyal 2023-11-08 20:25:49 +05:30
parent ccf124218b
commit 8360a4ec53
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -28,7 +28,7 @@
// Macros {{{
#define SET_STATE(x) \
self->vte_state = VTE_##x; zero_at_ptr(&self->utf8);
self->vte_state = VTE_##x; if (VTE_##x == VTE_NORMAL) { zero_at_ptr(&self->utf8); }
#define DIGIT \
'0': \