mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Don't lose filename on second escape
This commit is contained in:
parent
ef9e45682e
commit
72e305759e
|
@ -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…
Reference in a new issue