mirror of
https://github.com/jarun/nnn.git
synced 2025-01-26 10:46:36 +00:00
Do not change contents on ESC
This commit is contained in:
parent
9b212da6d4
commit
a70a4bf732
|
@ -1610,7 +1610,6 @@ static int filterentries(char *path)
|
||||||
case 27: /* Exit filter mode on Escape */
|
case 27: /* Exit filter mode on Escape */
|
||||||
if (len == 1)
|
if (len == 1)
|
||||||
cur = oldcur;
|
cur = oldcur;
|
||||||
*ch = CONTROL('L');
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3240,6 +3239,12 @@ nochange:
|
||||||
/* Save current */
|
/* Save current */
|
||||||
if (ndents)
|
if (ndents)
|
||||||
copycurname();
|
copycurname();
|
||||||
|
|
||||||
|
if (presel == 27) {
|
||||||
|
presel = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
goto nochange;
|
goto nochange;
|
||||||
case SEL_MFLTR: // fallthrough
|
case SEL_MFLTR: // fallthrough
|
||||||
case SEL_TOGGLEDOT: // fallthrough
|
case SEL_TOGGLEDOT: // fallthrough
|
||||||
|
|
Loading…
Reference in a new issue