aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-07-08 11:02:17 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-07-08 11:02:17 +0530
commitfb4263a7367ab74d746292d1559128e89b2cbdef (patch)
tree73322a5746a27ecdfbbaf343e8f99e7ab5ab3670
parenta8f7ee9debe88c27d86ccce3680d2f495e90df8f (diff)
downloadnnn-fb4263a7367ab74d746292d1559128e89b2cbdef.tar.gz
Reset current on empty filter prompt
-rw-r--r--nnn.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/nnn.c b/nnn.c
index 2fceeae..45a1a67 100644
--- a/nnn.c
+++ b/nnn.c
@@ -912,14 +912,9 @@ readln(char *path)
redraw(path);
printprompt(ln);
break;
- case KEY_DOWN: // fallthrough
- case KEY_UP: // fallthrough
- case KEY_LEFT: // fallthrough
- case KEY_RIGHT: // fallthrough
- case KEY_F(2):
- if (len == 1)
- cur = oldcur; // fallthrough
default:
+ if (len == 1)
+ cur = oldcur;
goto end;
}
end: