From 450df4c476ef9b285d1601ad78d48f49c3b058a0 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 26 Dec 2019 10:11:05 +0530 Subject: [PATCH] Retain filter on keys up and down --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 792c580f..b6ee67ff 100644 --- 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 != KEY_UP && *ch != KEY_DOWN) g_ctx[cfg.curctx].c_fltr[0] = g_ctx[cfg.curctx].c_fltr[1] = '\0'; move_cursor(cur, 0); -- 2.50.0