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

View file

@ -3367,9 +3367,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 (r <= 0) { if (matches(pln) == -1) {
!r ? unget_wch(KEY_BACKSPACE) : showfilter(ln); showfilter(ln);
continue; continue;
} }