Do not change contents on ESC

This commit is contained in:
Arun Prakash Jana 2019-03-13 08:33:17 +05:30
parent 9b212da6d4
commit a70a4bf732
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 6 additions and 1 deletions

View File

@ -1610,7 +1610,6 @@ static int filterentries(char *path)
case 27: /* Exit filter mode on Escape */
if (len == 1)
cur = oldcur;
*ch = CONTROL('L');
goto end;
}
@ -3240,6 +3239,12 @@ nochange:
/* Save current */
if (ndents)
copycurname();
if (presel == 27) {
presel = 0;
break;
}
goto nochange;
case SEL_MFLTR: // fallthrough
case SEL_TOGGLEDOT: // fallthrough