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