Browse Source

Don't lose filename on second escape

master
Arun Prakash Jana 6 years ago
parent
commit
72e305759e
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/nnn.c

+ 2
- 1
src/nnn.c View File

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


Loading…
Cancel
Save