diff --git a/app.go b/app.go index 0bf6cdc8..b9d0464e 100644 --- a/app.go +++ b/app.go @@ -645,8 +645,11 @@ func (app *app) updateFile(path string, add bool) { } if add { - if _, err := os.Stat(path); err == nil { + if stat, err := os.Stat(path); err == nil { allFiles = append(allFiles, newFile(path)) + if stat.IsDir() { + app.nav.setWatches() + } } } dir.allFiles = allFiles