Ignore filter key if no results

This commit is contained in:
Arun Prakash Jana 2021-07-16 02:20:28 +05:30
parent d40dbfd69a
commit 3ef50f06f8
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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;
}