1 parent
80f43fe39c
commit
f6cce2d40c
6 files changed
+19
-8
No files matched your search
@@ -300,6 +300,17 @@ func (nav *nav) renew(height int) {
|
||||
}
|
||||
}
|
||||
|
||||
func (nav *nav) reload() {
|
||||
nav.dirCache = make(map[string]*dir)
|
||||
|
||||
wd, err := os.Getwd()
|
||||
if err != nil {
|
||||
log.Printf("getting current directory: %s", err)
|
||||
}
|
||||
|
||||
nav.getDirs(wd)
|
||||
}
|
||||
|
||||
func (nav *nav) load(path string) *dir {
|
||||
d, ok := nav.dirCache[path]
|
||||
if !ok {
|
||||
|
||||
Reference in new issue
Block a user