From 7f605ab99504cb84dc0d28c623ebbbc4a1ff1fc7 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 19 Nov 2020 23:30:32 +0530 Subject: [PATCH] Let ^L exit filter mode and redraw if no last filter --- src/nnn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 4be553ac..36e2c30d 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2843,7 +2843,8 @@ static int filterentries(char *path, char *lastname) ln[1] = ln[REGEX_MAX - 1]; ln[REGEX_MAX - 1] = '\0'; len = mbstowcs(wln, ln, REGEX_MAX); - } + } else + goto end; } /* Go to the top, we don't know if the hovered file will match the filter */