mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Ignore filter key if no results
This commit is contained in:
parent
d40dbfd69a
commit
3ef50f06f8
|
@ -3321,9 +3321,9 @@ static int filterentries(char *path, char *lastname)
|
||||||
* - new matches can only be a subset of current matches.
|
* - new matches can only be a subset of current matches.
|
||||||
*/
|
*/
|
||||||
/* ndents = total; */
|
/* ndents = total; */
|
||||||
|
r = matches(pln);
|
||||||
if (matches(pln) == -1) {
|
if (r <= 0) {
|
||||||
showfilter(ln);
|
!r ? unget_wch(KEY_BACKSPACE) : showfilter(ln);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue