sync file selection after put

This commit is contained in:
Gokcehan 2016-12-19 22:00:50 +03:00
parent 563fae38d2
commit 977f6e287d

View File

@ -303,6 +303,11 @@ func (e *callExpr) eval(app *app, args []string) {
app.nav.save(false) app.nav.save(false)
app.nav.saves = make(map[string]bool) app.nav.saves = make(map[string]bool)
saveFiles(nil, false) 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": case "clear":
if err := saveFiles(nil, false); err != nil { if err := saveFiles(nil, false); err != nil {
msg := fmt.Sprintf("clear: %s", err) msg := fmt.Sprintf("clear: %s", err)