From 977f6e287dd10f91b40224ae3f8ef83b9f9ef824 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Mon, 19 Dec 2016 22:00:50 +0300 Subject: [PATCH] sync file selection after put --- eval.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eval.go b/eval.go index a5bbe4f..e7cc337 100644 --- a/eval.go +++ b/eval.go @@ -303,6 +303,11 @@ func (e *callExpr) eval(app *app, args []string) { 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 + log.Printf(msg) + } case "clear": if err := saveFiles(nil, false); err != nil { msg := fmt.Sprintf("clear: %s", err)