fix dircounts
This commit is contained in:
1 file changed
+4
-3
@@ -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() {
|
||||||
|
|||||||
Reference in new issue
Block a user