aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index 5975040..4d69047 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1158,7 +1158,12 @@ filterentries(char *path)
wln[len] = (wchar_t)*ch;
wln[++len] = '\0';
wcstombs(ln, wln, REGEX_MAX);
- ndents = total;
+
+ /* Forward-filtering optimization:
+ * - new matches can only be a subset of current matches.
+ */
+ /* ndents = total; */
+
if (matches(pln) == -1)
continue;