mirror of
https://github.com/jarun/nnn.git
synced 2025-03-23 06:43:18 +00:00
Don't lose filename on second escape
This commit is contained in:
parent
ef9e45682e
commit
72e305759e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue