mirror of
https://github.com/jarun/nnn.git
synced 2025-04-02 11:36:33 +00:00
Only one check suffices (if *buf, it's > 0)
This commit is contained in:
parent
a3852a6cb1
commit
58f8905ea3
1 changed files with 1 additions and 1 deletions
2
nnn.c
2
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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue