keep current directory hierarchy in cache on renew

Mentioned in #92.
This commit is contained in:
Gokcehan 2018-01-11 19:37:33 +03:00
parent 2b4c0f913b
commit 6774ff0b81

3
nav.go
View File

@ -272,6 +272,9 @@ func (nav *nav) getDirs(wd string) {
func (nav *nav) renew(height int) {
nav.dirCache = make(map[string]*dir)
for _, d := range nav.dirs {
nav.dirCache[d.path] = d
}
nav.height = height
for _, d := range nav.dirs {