commit 7f605ab99504cb84dc0d28c623ebbbc4a1ff1fc7
parent a443a321efb2f5435b9a352fe29be5bda5f5636b
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Thu, 19 Nov 2020 23:30:32 +0530
Let ^L exit filter mode and redraw if no last filter
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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 */