Skip to content

Commit

Permalink
clear dir cache with renew
Browse files Browse the repository at this point in the history
Mentioned in #92.
  • Loading branch information
gokcehan committed Dec 25, 2017
1 parent 2c63096 commit dd7b3f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nav.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dd7b3f9

Please sign in to comment.