diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-11-21 18:02:39 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-12-03 22:41:31 +0100 |
commit | bc91a382f6c899005463a007008d53c4e3e71be7 (patch) | |
tree | f064950ca2b5c4e365a1d3bdcd6eef930223fc69 | |
parent | bda07fa42baf7157f416d8616d58342eee51cbd7 (diff) |
Allow to pass '/' for item search
-rw-r--r-- | AvailableColumnsPanel.c | 2 | ||||
-rw-r--r-- | CategoriesPanel.c | 2 | ||||
-rw-r--r-- | ColumnsPanel.c | 2 | ||||
-rw-r--r-- | Panel.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/AvailableColumnsPanel.c b/AvailableColumnsPanel.c index feea5786..8945bd2c 100644 --- a/AvailableColumnsPanel.c +++ b/AvailableColumnsPanel.c @@ -53,7 +53,7 @@ static HandlerResult AvailableColumnsPanel_eventHandler(Panel* super, int ch) { } default: { - if (0 < ch && ch < 255 && isalpha((unsigned char)ch)) + if (0 < ch && ch < 255 && isgraph((unsigned char)ch)) result = Panel_selectByTyping(super, ch); break; } diff --git a/CategoriesPanel.c b/CategoriesPanel.c index 2dc1c3bf..4ee1ad46 100644 --- a/CategoriesPanel.c +++ b/CategoriesPanel.c @@ -87,7 +87,7 @@ static HandlerResult CategoriesPanel_eventHandler(Panel* super, int ch) { break; } default: - if (0 < ch && ch < 255 && isalpha((unsigned char)ch)) + if (0 < ch && ch < 255 && isgraph((unsigned char)ch)) result = Panel_selectByTyping(super, ch); if (result == BREAK_LOOP) result = IGNORED; diff --git a/ColumnsPanel.c b/ColumnsPanel.c index 63348ec5..b2a82465 100644 --- a/ColumnsPanel.c +++ b/ColumnsPanel.c @@ -95,7 +95,7 @@ static HandlerResult ColumnsPanel_eventHandler(Panel* super, int ch) { } default: { - if (0 < ch && ch < 255 && isalpha((unsigned char)ch)) + if (0 < ch && ch < 255 && isgraph((unsigned char)ch)) result = Panel_selectByTyping(super, ch); if (result == BREAK_LOOP) result = IGNORED; @@ -430,7 +430,7 @@ HandlerResult Panel_selectByTyping(Panel* this, int ch) { this->eventHandlerState = xCalloc(100, sizeof(char)); char* buffer = this->eventHandlerState; - if (0 < ch && ch < 255 && isalnum((unsigned char)ch)) { + if (0 < ch && ch < 255 && isgraph((unsigned char)ch)) { int len = strlen(buffer); if (!len) { if ('/' == ch) { |