commit b54f771a44eb09246ffc9d3058b54f076c2b4602
parent 23a806864fdeda8fab30a6f8af24a374973d0813
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Thu, 29 Jul 2021 03:33:51 +0530
Fix #1117: Revert "Ignore filter key if no results"
This reverts commit 3ef50f06f86a962b465d50b7ffb6909436b69685.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -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;
}