diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-10 01:18:51 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-10 01:18:51 +0530 |
commit | 658285541265f1f8933b5125ac742596491d8329 (patch) | |
tree | cbe0055e74aaf9448a6983bf9f7015ae4ce24564 /src/nnn.c | |
parent | a3d6b81d9f69fc378ace77068e1f0b64fd01a5d9 (diff) | |
download | nnn-658285541265f1f8933b5125ac742596491d8329.tar.gz |
Key \ only works in empty prompt
Diffstat (limited to 'src/nnn.c')
-rw-r--r-- | src/nnn.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2074,13 +2074,12 @@ static int filterentries(char *path) if (r == OK) { /* Handle all control chars in main loop */ if ((*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^') - || (*ch == '\\')) { + || (*ch == '\\' && len == 1)) { DPRINTF_D(*ch); DPRINTF_S(keyname(*ch)); /* If there's a filter, try a command on ^P */ - if (cfg.filtercmd && (*ch == CONTROL('P') || *ch == '\\') - && len > 1) { + if (cfg.filtercmd && *ch == CONTROL('P') && len > 1) { prompt_run(pln, (ndents ? dents[cur].name : ""), path); /* Clear the prompt */ |