keep cache when navigation is renewed

This commit is contained in:
Gokcehan 2018-06-08 21:47:28 +03:00
parent 7acc85f81c
commit e025c68130

5
nav.go
View File

@ -281,11 +281,6 @@ func newNav(height int) *nav {
}
func (nav *nav) renew() {
nav.dirCache = make(map[string]*dir)
for _, d := range nav.dirs {
nav.dirCache[d.path] = d
}
for _, d := range nav.dirs {
go func(d *dir) {
s, err := os.Stat(d.path)