summaryrefslogtreecommitdiff
path: root/src/basic/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/utf8.c')
-rw-r--r--src/basic/utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/utf8.c b/src/basic/utf8.c
index 6eae2b983..7a52fac62 100644
--- a/src/basic/utf8.c
+++ b/src/basic/utf8.c
@@ -73,7 +73,7 @@ static bool unichar_is_control(char32_t ch) {
'\t' is in C0 range, but more or less harmless and commonly used.
*/
- return (ch < ' ' && ch != '\t' && ch != '\n') ||
+ return (ch < ' ' && !IN_SET(ch, '\t', '\n')) ||
(0x7F <= ch && ch <= 0x9F);
}