From: Arun Prakash Jana Date: Wed, 13 Mar 2019 03:03:17 +0000 (+0530) Subject: Do not change contents on ESC X-Git-Tag: v2.4~26 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a70a4bf7326c38eac3c35ac7755dc928a12c3b97;p=nnn.git Do not change contents on ESC --- diff --git a/src/nnn.c b/src/nnn.c index 2db41eac..2a657520 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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