diff --git a/nav.go b/nav.go index 2e553083..fdf1d00b 100644 --- a/nav.go +++ b/nav.go @@ -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)