]> Sergey Matveev's repositories - nnn.git/commitdiff
Retain filters when context keys are used from filter prompt
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 25 Dec 2019 03:22:37 +0000 (08:52 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 25 Dec 2019 03:22:37 +0000 (08:52 +0530)
src/nnn.c

index 1326d3b2503f2c7b4ba57995671b835633ae6fa4..a4207778d4f0cfec7c6f14fe504bc17db548acd8 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2127,7 +2127,7 @@ static int filterentries(char *path)
                }
        }
 end:
-       if (*ch != '\t')
+       if (*ch != '\t' && *ch != CONTROL('_'))
                g_ctx[cfg.curctx].c_fltr[0] = g_ctx[cfg.curctx].c_fltr[1] = '\0';
 
        move_cursor(cur, 0);