renew directories asynchronously

Mentioned in #92.
This commit is contained in:
Gokcehan committed 2018-01-27 00:28:07 +03:00
1 parent 58538c8020
commit 59b2001253
2 files changed
+32 -13

No files matched your search

+5
View File
@@ -81,6 +81,11 @@ func (app *app) loop() {
return
case d := <-app.nav.dirChan:
prev, ok := app.nav.dirCache[d.path]
if ok {
d.find(prev.name(), app.nav.height)
}
app.nav.dirCache[d.path] = d
for i := range app.nav.dirs {