Invalidate cache for recreated files (#1756)

* Invalidate cache for recreated files

* Sanity check for file updates

* Prevent load when watching

* Revert "Prevent load when watching"

This reverts commit 4cf4629a87.

* Load is redundant when watch is enabled
This commit is contained in:
Joe Lim authored and GitHub committed 2024-06-23 10:17:21 +10:00
1 parent 38ddfea9a0
commit 67038762cc
4 files changed
+25 -4

No files matched your search

+1 -1
View File
@@ -1396,7 +1396,7 @@ func (e *callExpr) eval(app *app, args []string) {
app.ui.loadFile(app, true)
onRedraw(app)
case "load":
if !app.nav.init {
if !app.nav.init || gOpts.watch {
return
}
app.nav.renew()