Reset current on empty filter prompt

This commit is contained in:
Arun Prakash Jana 2017-07-08 11:02:17 +05:30
parent a8f7ee9deb
commit fb4263a736
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 7 deletions

9
nnn.c
View File

@ -912,14 +912,9 @@ readln(char *path)
redraw(path); redraw(path);
printprompt(ln); printprompt(ln);
break; 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: default:
if (len == 1)
cur = oldcur;
goto end; goto end;
} }
end: end: