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
1 changed files with 3 additions and 3 deletions

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