]> Sergey Matveev's repositories - nnn.git/commitdiff
Clear filter on a manual dir relaod
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 7 Feb 2020 00:23:15 +0000 (05:53 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 7 Feb 2020 00:23:15 +0000 (05:53 +0530)
src/nnn.c

index cc70bf9daa86ffb70639138119bf93c62887e573..20e082e3d9f892b3d9236d4208374ab998a72c0c 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2225,7 +2225,8 @@ static int nextsel(int presel)
 
                if (c == ERR && presel == MSGWAIT)
                        c = (cfg.filtermode) ? FILTER : CONTROL('L');
-               else if (c == FILTER) /* Clear previous filter when manually starting */
+               else if (c == FILTER || c == CONTROL('L'))
+                       /* Clear previous filter when manually starting */
                        clearfilter();
        }