Fix for dircounts

This commit is contained in:
Joe Lim committed 2024-03-30 21:09:46 +11:00
1 parent 574513adfb
commit 7ce0756e22
1 file changed
+3
+3
View File
@@ -483,6 +483,9 @@ func (app *app) loop() {
app.ui.draw(app.nav) app.ui.draw(app.nav)
case ev := <-app.nav.watcherEvents: case ev := <-app.nav.watcherEvents:
if ev.Has(fsnotify.Create) || ev.Has(fsnotify.Remove) || ev.Has(fsnotify.Rename) { if ev.Has(fsnotify.Create) || ev.Has(fsnotify.Remove) || ev.Has(fsnotify.Rename) {
go func() {
app.nav.fileChan <- newFile(filepath.Dir(ev.Name))
}()
app.nav.renew() app.nav.renew()
app.ui.loadFile(app, false) app.ui.loadFile(app, false)
app.ui.draw(app.nav) app.ui.draw(app.nav)