aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-14 14:05:19 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-14 14:05:19 +0530
commite359f60294dea4eced34eb39a48129acc4391c34 (patch)
tree9799098c50573b02fe190087053ce35651310340
parentbac199d0cf01cf1e8c13091a678f7e3874d4aed9 (diff)
downloadnnn-e359f60294dea4eced34eb39a48129acc4391c34.tar.gz
Set to last selection if filter is empty
-rw-r--r--nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nnn.c b/nnn.c
index cdabfde..a1d5b67 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1090,9 +1090,7 @@ filterentries(char *path)
redraw(path);
goto end;
- case CONTROL('L'):
- if (len == 1)
- cur = oldcur; // fallthrough
+ case CONTROL('L'): // fallthrough
case CONTROL('K'): // fallthrough
case CONTROL('_'): // fallthrough
case CONTROL('R'): // fallthrough
@@ -1102,6 +1100,8 @@ filterentries(char *path)
case CONTROL('J'): // fallthrough
case CONTROL('X'): // fallthrough
case CONTROL('Y'):
+ if (len == 1)
+ cur = oldcur; // fallthrough
goto end;
default:
/* Reset cur in case it's a repeat search */