nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 58f8905ea34fb7ee70fb4a459eaf03d832c004ce
parent a3852a6cb1c69f629e3728d68716129c2e50b620
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu,  4 May 2017 01:08:17 +0530

Only one check suffices (if *buf, it's > 0)

Diffstat:
Mnnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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++;