aboutsummaryrefslogtreecommitdiffstats
path: root/libterminput.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libterminput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libterminput.c b/libterminput.c
index 81656aa..136f898 100644
--- a/libterminput.c
+++ b/libterminput.c
@@ -467,7 +467,7 @@ parse_sequence(union libterminput_input *input, struct libterminput_state *ctx)
input->mouseevent.y = (size_t)nums[1] + (size_t)!nums[1];
break;
case 'u':
- if (nums[0] > 0x10FFFFULL) {
+ if (nums[0] > 0x10FFFFULL || (nums[0] & 0xD800) == 0xD800) {
input->type = LIBTERMINPUT_NONE;
break;
}