Fix #1117: Revert "Ignore filter key if no results"

This reverts commit 3ef50f06f8.
This commit is contained in:
Arun Prakash Jana 2021-07-29 03:33:51 +05:30
parent 23a806864f
commit b54f771a44
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 3 additions and 3 deletions

View File

@ -3367,9 +3367,9 @@ static int filterentries(char *path, char *lastname)
* - new matches can only be a subset of current matches.
*/
/* ndents = total; */
r = matches(pln);
if (r <= 0) {
!r ? unget_wch(KEY_BACKSPACE) : showfilter(ln);
if (matches(pln) == -1) {
showfilter(ln);
continue;
}