nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fb4263a7367ab74d746292d1559128e89b2cbdef
parent a8f7ee9debe88c27d86ccce3680d2f495e90df8f
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat,  8 Jul 2017 11:02:17 +0530

Reset current on empty filter prompt

Diffstat:
Mnnn.c | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git 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: