summaryrefslogtreecommitdiffstats
path: root/IncSet.c
diff options
context:
space:
mode:
Diffstat (limited to 'IncSet.c')
-rw-r--r--IncSet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/IncSet.c b/IncSet.c
index fe8db49e..2eb77ef4 100644
--- a/IncSet.c
+++ b/IncSet.c
@@ -151,7 +151,7 @@ bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue
}
}
doSearch = false;
- } else if (isprint((char)ch) && (mode->index < INCMODE_MAX)) {
+ } else if (ch < 255 && isprint((char)ch) && (mode->index < INCMODE_MAX)) {
mode->buffer[mode->index] = ch;
mode->index++;
mode->buffer[mode->index] = 0;