mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Reset current on empty filter prompt
This commit is contained in:
parent
a8f7ee9deb
commit
fb4263a736
9
nnn.c
9
nnn.c
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue