]> Sergey Matveev's repositories - nnn.git/commitdiff
Print prompt even on no matches
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 28 Aug 2018 17:21:26 +0000 (22:51 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 28 Aug 2018 17:21:26 +0000 (22:51 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index abb90b5e0a58cccaee09e247d5a7150220781f8b..938be2806df8a72cbd16f057978e61dfe960cba8 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -1077,9 +1077,9 @@ filterentries(char *path)
 
                        wcstombs(ln, wln, REGEX_MAX);
                        ndents = total;
-                       if (matches(pln) == -1)
-                               continue;
-                       redraw(path);
+                       if (matches(pln) != -1)
+                               redraw(path);
+
                        printprompt(ln);
                        continue;
                }