From 0941e511e404684fba13d358c2c7b4d6581d683b Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 2 Mar 2020 18:54:53 +0530 Subject: [PATCH] Clear filter at start --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 5663bf6a..61d8b61d 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1481,7 +1481,7 @@ static bool initcurses(void *oldmask) init_pair(i + 1, g_ctx[i].color, -1); - g_ctx[i].c_fltr[REGEX_MAX - 1] = '\0'; + memset(g_ctx[i].c_fltr, 0, REGEX_MAX); } settimeout(); /* One second */