From 58f8905ea34fb7ee70fb4a459eaf03d832c004ce Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 4 May 2017 01:08:17 +0530 Subject: [PATCH] Only one check suffices (if *buf, it's > 0) --- nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nnn.c b/nnn.c index 31b0e948..76f00ce9 100644 --- a/nnn.c +++ b/nnn.c @@ -787,7 +787,7 @@ replace_escape(const char *str) mbstowcs(wbuf, str, PATH_MAX); while (*buf) { - if ((*buf >= '\x01' && *buf <= '\x1f') || *buf == '\x7f') + if (*buf <= '\x1f' || *buf == '\x7f') *buf = '\?'; buf++;