1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

handle_interlink_event: don't check whether key <= 0xFF

This is a given, because any value >= 0x100 is negated.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-10-13 09:02:04 +00:00 committed by Miciah Dashiel Butler Masters
parent 8957379319
commit 5605a046a7

View File

@ -360,14 +360,16 @@ handle_interlink_event(struct terminal *term, struct interlink_event *ilev)
}
}
if (key < 0x80 || key > 0xFF || !utf8_io) {
/* Note: We know that key <= 0xFF. */
if (key < 0x80 || !utf8_io) {
/* This byte is not part of a multibyte character
* encoding: either it is outside of the ranges for
* UTF-8 start and continuation bytes or UTF-8 I/O mode
* is disabled. */
#ifdef CONFIG_UTF8
if (key >= 0 && key <= 0xFF && !utf8_io) {
if (key >= 0 && !utf8_io) {
/* Not special and UTF-8 mode is disabled:
* recode from the terminal charset to UCS-4. */