]> Sergey Matveev's repositories - nnn.git/commitdiff
Let ^L exit filter mode and redraw if no last filter
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 19 Nov 2020 18:00:32 +0000 (23:30 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 19 Nov 2020 18:00:32 +0000 (23:30 +0530)
src/nnn.c

index 4be553acb56354f54a880acaccde1ee190b29bb8..36e2c30d0b769f8518a025c7428e5d33f5788b08 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2843,7 +2843,8 @@ static int filterentries(char *path, char *lastname)
                                        ln[1] = ln[REGEX_MAX - 1];
                                        ln[REGEX_MAX - 1] = '\0';
                                        len = mbstowcs(wln, ln, REGEX_MAX);
-                               }
+                               } else
+                                       goto end;
                        }
 
                        /* Go to the top, we don't know if the hovered file will match the filter */