Avoid unportable iswascii(3)

weechat-hashes
Curtis McEnroe 2018-08-20 17:20:44 -04:00
parent 431dd32cf1
commit 133ff4e651
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 1 additions and 1 deletions

2
ui.c
View File

@ -437,7 +437,7 @@ static void logPageDown(void) {
} }
static bool keyChar(wchar_t ch) { static bool keyChar(wchar_t ch) {
if (iswascii(ch)) { if (ch < 0200) {
enum TermEvent event = termEvent((char)ch); enum TermEvent event = termEvent((char)ch);
switch (event) { switch (event) {
break; case TERM_FOCUS_IN: viewUnmark(ui.view); break; case TERM_FOCUS_IN: viewUnmark(ui.view);