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
}
currFile, err := nav.currFile()
if err == nil && currFile.IsDir() {
watches[currFile.path] = true
for _, file := range nav.currDir().allFiles {
if file.IsDir() {
watches[file.path] = true
}
}
for _, watch := range nav.watcher.WatchList() {