parent
2b4c0f913b
commit
6774ff0b81
3
nav.go
3
nav.go
@ -272,6 +272,9 @@ func (nav *nav) getDirs(wd string) {
|
|||||||
|
|
||||||
func (nav *nav) renew(height int) {
|
func (nav *nav) renew(height int) {
|
||||||
nav.dirCache = make(map[string]*dir)
|
nav.dirCache = make(map[string]*dir)
|
||||||
|
for _, d := range nav.dirs {
|
||||||
|
nav.dirCache[d.path] = d
|
||||||
|
}
|
||||||
|
|
||||||
nav.height = height
|
nav.height = height
|
||||||
for _, d := range nav.dirs {
|
for _, d := range nav.dirs {
|
||||||
|
Loading…
Reference in New Issue
Block a user