mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +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.
|
||||
*/
|
||||
/* ndents = total; */
|
||||
|
||||
if (matches(pln) == -1) {
|
||||
showfilter(ln);
|
||||
r = matches(pln);
|
||||
if (r <= 0) {
|
||||
!r ? unget_wch(KEY_BACKSPACE) : showfilter(ln);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue