From af99ec8f3d4ddb5335ceac3b081357c41a178792 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 10 Dec 2018 08:22:25 +0000 Subject: [PATCH] Support between (space) and ~. --- src/system/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/text.c b/src/system/text.c index 01a97e4..1782215 100644 --- a/src/system/text.c +++ b/src/system/text.c @@ -402,7 +402,7 @@ static char *nextCharacter(const char *str, int *i) { bit = (unsigned char)str[*i]; - if ((bit >= ' ' && bit <= 'z') || bit >= 0xC0 || bit == '\0') + if ((bit >= ' ' && bit <= '~') || bit >= 0xC0 || bit == '\0') { if (n > 0) { @@ -427,7 +427,7 @@ static int strlenMB(char *text) { bit = (unsigned char)text[i]; - if ((bit >= ' ' && bit <= 'z') || bit >= 0xC0) + if ((bit >= ' ' && bit <= '~') || bit >= 0xC0) { n++; }