mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Set to last selection if filter is empty
This commit is contained in:
parent
bac199d0cf
commit
e359f60294
6
nnn.c
6
nnn.c
|
@ -1090,9 +1090,7 @@ filterentries(char *path)
|
||||||
|
|
||||||
redraw(path);
|
redraw(path);
|
||||||
goto end;
|
goto end;
|
||||||
case CONTROL('L'):
|
case CONTROL('L'): // fallthrough
|
||||||
if (len == 1)
|
|
||||||
cur = oldcur; // fallthrough
|
|
||||||
case CONTROL('K'): // fallthrough
|
case CONTROL('K'): // fallthrough
|
||||||
case CONTROL('_'): // fallthrough
|
case CONTROL('_'): // fallthrough
|
||||||
case CONTROL('R'): // fallthrough
|
case CONTROL('R'): // fallthrough
|
||||||
|
@ -1102,6 +1100,8 @@ filterentries(char *path)
|
||||||
case CONTROL('J'): // fallthrough
|
case CONTROL('J'): // fallthrough
|
||||||
case CONTROL('X'): // fallthrough
|
case CONTROL('X'): // fallthrough
|
||||||
case CONTROL('Y'):
|
case CONTROL('Y'):
|
||||||
|
if (len == 1)
|
||||||
|
cur = oldcur; // fallthrough
|
||||||
goto end;
|
goto end;
|
||||||
default:
|
default:
|
||||||
/* Reset cur in case it's a repeat search */
|
/* Reset cur in case it's a repeat search */
|
||||||
|
|
Loading…
Reference in a new issue