diff options
author | 2019-03-13 08:33:17 +0530 | |
---|---|---|
committer | 2019-03-13 08:33:17 +0530 | |
commit | a70a4bf7326c38eac3c35ac7755dc928a12c3b97 (patch) | |
tree | c722eb0246cd25b62363b0d1032deaf373896d37 /src | |
parent | 9b212da6d42bf1c656ea34fe0fcc09d0243b50c9 (diff) | |
download | nnn-a70a4bf7326c38eac3c35ac7755dc928a12c3b97.tar.gz |
Do not change contents on ESC
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |