]> Sergey Matveev's repositories - nnn.git/commitdiff
Only one check suffices (if *buf, it's > 0)
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 3 May 2017 19:38:17 +0000 (01:08 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 3 May 2017 19:38:17 +0000 (01:08 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index 31b0e948f2c6af02ad0f55f4f2aebdea98f7f895..76f00ce923db2cdbd5e8ee208ddc2d3815b651d9 100644 (file)
--- 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++;