From bb3d79ce216b42cd71223860a0323c6afdd39d99 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 12 Jan 2020 02:46:19 +0530 Subject: Go to top when last saved filter is applied --- src/nnn.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index 55754ca..5029c80 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2143,6 +2143,9 @@ static int filterentries(char *path, char *lastname) ln[1] = ln[REGEX_MAX - 1]; ln[REGEX_MAX - 1] = '\0'; len = mbstowcs(wln, ln, REGEX_MAX); + /* Go to the top, we don't know if the + hovered file will match the filter */ + cur = 0; if (matches(pln) != -1) redraw(path); -- cgit v1.2.3-70-g09d2