fix dircounts

This commit is contained in:
Joe Lim committed 2024-03-31 20:40:31 +11:00
1 parent 54c1c9c663
commit 4ec8ba5690
1 file changed
+4 -3
+4 -3
View File
@@ -2105,9 +2105,10 @@ func (nav *nav) setWatches() {
watches[dir.path] = true watches[dir.path] = true
} }
currFile, err := nav.currFile() for _, file := range nav.currDir().allFiles {
if err == nil && currFile.IsDir() { if file.IsDir() {
watches[currFile.path] = true watches[file.path] = true
}
} }
for _, watch := range nav.watcher.WatchList() { for _, watch := range nav.watcher.WatchList() {