From 65e593b68f3e525fdd0ebb05c73b5a29a3cfdf31 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 7 Nov 2020 01:13:11 +0300 Subject: [PATCH] initialize ignorecase/ignoredia for loading dirs Related #478 --- nav.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nav.go b/nav.go index c67c311..4e5d5bc 100644 --- a/nav.go +++ b/nav.go @@ -307,7 +307,15 @@ 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, hiddenfiles: gOpts.hiddenfiles} + d := &dir{ + loading: true, + loadTime: time.Now(), + path: path, + sortType: gOpts.sortType, + hiddenfiles: gOpts.hiddenfiles, + ignorecase: gOpts.ignorecase, + ignoredia: gOpts.ignoredia, + } nav.dirCache[path] = d go func() { d := newDir(path)