From b54f771a44eb09246ffc9d3058b54f076c2b4602 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 29 Jul 2021 03:33:51 +0530 Subject: [PATCH] Fix #1117: Revert "Ignore filter key if no results" This reverts commit 3ef50f06f86a962b465d50b7ffb6909436b69685. --- src/nnn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index deb1520a..67a1dd4d 100644 --- 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; }