diff options
author | Mattias Andrée <m@maandree.se> | 2025-02-19 23:06:02 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-02-19 23:06:02 +0100 |
commit | 24ebd3c309c5d6cad63bbf1b40de8c17aead0366 (patch) | |
tree | 7deab3ddadf241ccfaefc31e65916b6036689285 /libterminput_parse_sequence__.c | |
parent | Add tests for new escape sequences (diff) | |
download | libterminput-24ebd3c309c5d6cad63bbf1b40de8c17aead0366.tar.gz libterminput-24ebd3c309c5d6cad63bbf1b40de8c17aead0366.tar.bz2 libterminput-24ebd3c309c5d6cad63bbf1b40de8c17aead0366.tar.xz |
Add state marshalling and unmarshalling functions
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libterminput_parse_sequence__.c')
-rw-r--r-- | libterminput_parse_sequence__.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libterminput_parse_sequence__.c b/libterminput_parse_sequence__.c index aaf0fb4..78f0161 100644 --- a/libterminput_parse_sequence__.c +++ b/libterminput_parse_sequence__.c @@ -112,7 +112,7 @@ libterminput_parse_sequence__(union libterminput_input *input, struct libterminp break; case 'u': if (nums[0] > 0x10FFFFULL || (nums[0] & 0xFFF800ULL) == 0xD800ULL) { - input->type = LIBTERMINPUT_NONE; + NOTHING(input); break; } libterminput_encode_utf8__(nums[0], input->keypress.symbol); @@ -268,7 +268,7 @@ libterminput_parse_sequence__(union libterminput_input *input, struct libterminp default: /* This shouldn't happen (without goto) */ suppress: - input->type = LIBTERMINPUT_NONE; + NOTHING(input); break; } } |