diff --git a/eval.go b/eval.go index 8f36971..846c452 100644 --- a/eval.go +++ b/eval.go @@ -374,9 +374,6 @@ func (e *callExpr) eval(app *app, args []string) { return } app.nav.renew(app.nav.height) - app.nav.save(false) - app.nav.saves = make(map[string]bool) - saveFiles(nil, false) if err := sendRemote("send sync"); err != nil { msg := fmt.Sprintf("put: %s", err) app.ui.message = msg diff --git a/nav.go b/nav.go index db5a329..87a3958 100644 --- a/nav.go +++ b/nav.go @@ -519,6 +519,8 @@ func (nav *nav) put() error { // TODO: async? + saveFiles(nil, false) + return nil }