Skip to content

Commit

Permalink
initialize hiddenfiles for loading directories
Browse files Browse the repository at this point in the history
Related #478
  • Loading branch information
gokcehan committed Oct 6, 2020
1 parent 4c89535 commit 6a28667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ type nav struct {
func (nav *nav) loadDir(path string) *dir {
d, ok := nav.dirCache[path]
if !ok {
d := &dir{loading: true, loadTime: time.Now(), path: path, sortType: gOpts.sortType}
d := &dir{loading: true, loadTime: time.Now(), path: path, sortType: gOpts.sortType, hiddenfiles: gOpts.hiddenfiles}
nav.dirCache[path] = d
go func() {
d := newDir(path)
Expand Down

0 comments on commit 6a28667

Please sign in to comment.