aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-26 10:11:05 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-26 10:24:57 +0530
commit450df4c476ef9b285d1601ad78d48f49c3b058a0 (patch)
tree9f06f1591c373146c4ad0a0cdc4b4676c9fd6a59
parent7e958d3cd3055d3093c078813168ad6b8932fec1 (diff)
downloadnnn-450df4c476ef9b285d1601ad78d48f49c3b058a0.tar.gz
Retain filter on keys up and down
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 792c580..b6ee67f 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);