Browse Source

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

master
Arun Prakash Jana 7 years ago
parent
commit
58f8905ea3
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nnn.c

+ 1
- 1
nnn.c View File

@@ -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++;


Loading…
Cancel
Save