Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ScreenTabsPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static HandlerResult ScreenTabsPanel_eventHandler(Panel* super, int ch) {
break;
}
default:
if (ch < 255 && isalpha(ch))
if (0 < ch && ch < 255 && isalpha((unsigned char)ch))
result = Panel_selectByTyping(super, ch);
if (result == BREAK_LOOP)
result = IGNORED;
Expand Down Expand Up @@ -333,7 +333,7 @@ static HandlerResult ScreenNamesPanel_eventHandlerNormal(Panel* super, int ch) {
result = HANDLED;
break;
default:
if (ch < 255 && isalpha(ch))
if (0 < ch && ch < 255 && isalpha((unsigned char)ch))
result = Panel_selectByTyping(super, ch);
if (result == BREAK_LOOP)
result = IGNORED;
Expand Down
2 changes: 1 addition & 1 deletion ScreensPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static HandlerResult ScreensPanel_eventHandlerNormal(Panel* super, int ch) {
result = HANDLED;
break;
default:
if (ch < 255 && isalpha(ch))
if (0 < ch && ch < 255 && isalpha((unsigned char)ch))
result = Panel_selectByTyping(super, ch);
if (result == BREAK_LOOP)
result = IGNORED;
Expand Down
Loading