aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-30 05:24:41 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-30 05:24:41 +0530
commitc48b8d02a12e9ce074dbdc295a91238b38e372b5 (patch)
treef2c1453df70390885df5257ca4dd129d46f83a46
parentf4acf23c15842d4f3dfdcba883c98dba9cbe53d6 (diff)
downloadnnn-c48b8d02a12e9ce074dbdc295a91238b38e372b5.tar.gz
Revert "Alt+Enter: clear filter and exit filter prompt"
-rw-r--r--src/nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 9fdb103..eb1cb52 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2590,7 +2590,7 @@ static int filterentries(char *path, char *lastname)
#endif
case 27: /* Exit filter mode on Escape and Alt+key */
if (handle_alt_key(ch) != ERR) {
- if (*ch == 13) { /* Handle Alt + Ret */
+ if (*ch == 27) { /* Handle Alt + Esc */
if (wln[1]) {
ln[REGEX_MAX - 1] = ln[1];
ln[1] = wln[1] = '\0';
@@ -4138,7 +4138,7 @@ static void show_help(const char *path)
"a1-4 Context 1-4%-7c(Sh)Tab Cycle context\n"
"c/ Filter%-17c^N Toggle type-to-nav\n"
"aEsc Exit prompt%-12c^L Redraw/clear prompt\n"
- "c0 Lock%-14cAlt+Ret Clear filter, redraw\n"
+ "c0 Lock%-14cAlt+Esc Clear filter, redraw\n"
"c? Help, conf%-13c^G QuitCD\n"
"cq Quit context%-7c^Q (Q) Quit (with err)\n"
"1FILES\n"