From 4ec8ba56906d2480225c404f8dae6c1961bc7f4c Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Sun, 31 Mar 2024 20:40:31 +1100 Subject: [PATCH] fix dircounts --- nav.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nav.go b/nav.go index d74c378b..d4bdacd8 100644 --- a/nav.go +++ b/nav.go @@ -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() {