Don't lose filename on second escape

This commit is contained in:
Arun Prakash Jana 2019-01-06 03:08:46 +05:30
parent ef9e45682e
commit 72e305759e
No known key found for this signature in database
GPG key ID: A75979F35C080412

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;
} }