clear dir cache with renew

Mentioned in #92.
This commit is contained in:
Gokcehan 2017-12-25 15:19:23 +03:00
parent 2c63096d3b
commit dd7b3f95c7

2
nav.go
View File

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