From: Arun Prakash Jana Date: Thu, 19 Nov 2020 18:00:32 +0000 (+0530) Subject: Let ^L exit filter mode and redraw if no last filter X-Git-Tag: v3.6~61 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7f605ab99504cb84dc0d28c623ebbbc4a1ff1fc7;p=nnn.git Let ^L exit filter mode and redraw if no last filter --- 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 */