Skip to content

Commit

Permalink
Fix filter resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
joelim-work committed Jun 22, 2024
1 parent d3f7c6a commit 4196bda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 0 additions & 2 deletions nav.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4196bda

Please sign in to comment.