From 4196bdae5e6bf61a71af075a8b2980df4a1c6438 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Sat, 22 Jun 2024 15:53:20 +1000 Subject: [PATCH] Fix filter resetting --- app.go | 2 ++ nav.go | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index 1e3ad08a..04974052 100644 --- a/app.go +++ b/app.go @@ -384,6 +384,8 @@ func (app *app) loop() { if ok { d.ind = prev.ind d.pos = prev.pos + d.filter = prev.filter + d.sort() d.sel(prev.name(), app.nav.height) } diff --git a/nav.go b/nav.go index d4997c21..008466fd 100644 --- a/nav.go +++ b/nav.go @@ -529,8 +529,6 @@ func (nav *nav) checkDir(dir *dir) { dir.loadTime = now go func() { nd := newDir(dir.path) - nd.filter = dir.filter - nd.sort() if gOpts.dirpreviews { nav.dirPreviewChan <- nd }