Retain filter on keys up and down

This commit is contained in:
Arun Prakash Jana 2019-12-26 10:11:05 +05:30
parent 7e958d3cd3
commit 450df4c476
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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);