commit 3ef50f06f86a962b465d50b7ffb6909436b69685 parent d40dbfd69ab074ae4ff4815ceacb8d437b6f6b84 Author: Arun Prakash Jana <engineerarun@gmail.com> Date: Fri, 16 Jul 2021 02:20:28 +0530 Ignore filter key if no results Diffstat:
| M | src/nnn.c | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c @@ -3321,9 +3321,9 @@ static int filterentries(char *path, char *lastname) * - new matches can only be a subset of current matches. */ /* ndents = total; */ - - if (matches(pln) == -1) { - showfilter(ln); + r = matches(pln); + if (r <= 0) { + !r ? unget_wch(KEY_BACKSPACE) : showfilter(ln); continue; }