Ignore the user keys range when checking if a key is Unicode.

This commit is contained in:
nicm
2023-04-17 18:22:24 +00:00
parent 9f605178c3
commit 48eba4c195
2 changed files with 3 additions and 3 deletions

4
tmux.h
View File

@ -157,7 +157,9 @@ struct winlink;
#define KEYC_IS_UNICODE(key) \
(((key) & KEYC_MASK_KEY) > 0x7f && \
(((key) & KEYC_MASK_KEY) < KEYC_BASE || \
((key) & KEYC_MASK_KEY) >= KEYC_BASE_END))
((key) & KEYC_MASK_KEY) >= KEYC_BASE_END) && \
(((key) & KEYC_MASK_KEY) < KEYC_USER || \
((key) & KEYC_MASK_KEY) >= KEYC_USER + KEYC_NUSER))
/* Multiple click timeout. */
#define KEYC_CLICK_TIMEOUT 300