aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-02 18:54:53 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-03-02 18:54:53 +0530
commit0941e511e404684fba13d358c2c7b4d6581d683b (patch)
treea898f2d79b2906144ded34329f52d9454caf4e35 /src/nnn.c
parenta54a23eae53f024b1ae5fbebaa4567d167ca8884 (diff)
downloadnnn-0941e511e404684fba13d358c2c7b4d6581d683b.tar.gz
Clear filter at start
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5663bf6..61d8b61 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 */