nnn

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

commit 72e305759e66cbd6d7e6aa139e93ff5980c66cad
parent ef9e45682ec355c95027f0933092e6bd3d617a5a
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun,  6 Jan 2019 03:08:46 +0530

Don't lose filename on second escape

Diffstat:
Msrc/nnn.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -1259,7 +1259,8 @@ static int filterentries(char *path) printprompt(ln); continue; case 27: /* Exit filter mode on Escape */ - cur = oldcur; + if (len == 1) + cur = oldcur; *ch = CONTROL('L'); goto end; }