aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-04-28 09:18:04 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-04-28 09:18:04 +0100
commite2d01795d2501f6097bb13129995a6d0a86af419 (patch)
tree65113b35460fbea1744bbeb8a7df42354f7ad266 /status.c
parent589d3eb48fcb30163c9ac3f4b8d5e802e3f45118 (diff)
downloadrtmux-e2d01795d2501f6097bb13129995a6d0a86af419.tar.gz
rtmux-e2d01795d2501f6097bb13129995a6d0a86af419.tar.bz2
rtmux-e2d01795d2501f6097bb13129995a6d0a86af419.zip
Move "special" keys into the Unicode PUA rather than making them high a top bit
set, some compilers cannot handle enums that are larger than int. GitHub issue 2673.
Diffstat (limited to 'status.c')
-rw-r--r--status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/status.c b/status.c
index 271e1afa..f4418500 100644
--- a/status.c
+++ b/status.c
@@ -1300,7 +1300,7 @@ process_key:
return (0);
append_key:
- if (key <= 0x1f || key >= KEYC_BASE)
+ if (key <= 0x1f || (key >= KEYC_BASE && key < KEYC_BASE_END))
return (0);
if (key <= 0x7f)
utf8_set(&tmp, key);