From e025c68130389cb9db62eb813cfdca2a7a92b1a5 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Fri, 8 Jun 2018 21:47:28 +0300 Subject: [PATCH] keep cache when navigation is renewed --- nav.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nav.go b/nav.go index 78009b6..a0fe782 100644 --- a/nav.go +++ b/nav.go @@ -281,11 +281,6 @@ func newNav(height int) *nav { } func (nav *nav) renew() { - nav.dirCache = make(map[string]*dir) - for _, d := range nav.dirs { - nav.dirCache[d.path] = d - } - for _, d := range nav.dirs { go func(d *dir) { s, err := os.Stat(d.path)