]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #1117: Revert "Ignore filter key if no results"
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 28 Jul 2021 22:03:51 +0000 (03:33 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 28 Jul 2021 22:04:06 +0000 (03:34 +0530)
This reverts commit 3ef50f06f86a962b465d50b7ffb6909436b69685.

src/nnn.c

index deb1520af385c33cb8f52a8e1db0b505cdc2ace4..67a1dd4d43c8780c80ff545e65a2a9f22d375fb1 100644 (file)
--- 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;
                }