aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-05-04 01:08:17 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-05-04 01:08:17 +0530
commit58f8905ea34fb7ee70fb4a459eaf03d832c004ce (patch)
treea97c7f5ecc29f49801a998266ca2ab75c33a3b9d
parenta3852a6cb1c69f629e3728d68716129c2e50b620 (diff)
downloadnnn-58f8905ea34fb7ee70fb4a459eaf03d832c004ce.tar.gz
Only one check suffices (if *buf, it's > 0)
-rw-r--r--nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index 31b0e94..76f00ce 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++;