From: Arun Prakash Jana Date: Wed, 28 Jul 2021 22:03:51 +0000 (+0530) Subject: Fix #1117: Revert "Ignore filter key if no results" X-Git-Tag: v4.3~69 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b54f771a44eb09246ffc9d3058b54f076c2b4602;p=nnn.git Fix #1117: Revert "Ignore filter key if no results" This reverts commit 3ef50f06f86a962b465d50b7ffb6909436b69685. --- 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; }