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-06-10 09:22:07 +0100
commit059580e0f72ebeb0538d0ef54808dae277388bf9 (patch)
tree9af3abc5561700f9368670147383bad763768cdd /status.c
parentcb2943faab2053719b13306f95ed58a2dae64e81 (diff)
downloadrtmux-059580e0f72ebeb0538d0ef54808dae277388bf9.tar.gz
rtmux-059580e0f72ebeb0538d0ef54808dae277388bf9.tar.bz2
rtmux-059580e0f72ebeb0538d0ef54808dae277388bf9.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);