From 24ebd3c309c5d6cad63bbf1b40de8c17aead0366 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Feb 2025 23:06:02 +0100 Subject: Add state marshalling and unmarshalling functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libterminput_parse_sequence__.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libterminput_parse_sequence__.c') 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; } } -- cgit v1.2.3-70-g09d2