initialize ignorecase/ignoredia for loading dirs

Related #478
This commit is contained in:
Gokcehan 2020-11-07 01:13:11 +03:00
parent 70ec01fc3b
commit 65e593b68f

10
nav.go
View File

@ -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)