move server file clearing to builtin 'put' command
If a user defines an asynchronous 'put' command it will fetch an empty list from the server since server file list is immediately cleared after every 'put' command. Now that we move the clearing to the builtin 'put' command, users need to explicitly clear server file list in their custom 'put' commands if they like.
This commit is contained in:
parent
f907a553ae
commit
fed8d73ffe
3
eval.go
3
eval.go
@ -374,9 +374,6 @@ func (e *callExpr) eval(app *app, args []string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
app.nav.renew(app.nav.height)
|
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 {
|
if err := sendRemote("send sync"); err != nil {
|
||||||
msg := fmt.Sprintf("put: %s", err)
|
msg := fmt.Sprintf("put: %s", err)
|
||||||
app.ui.message = msg
|
app.ui.message = msg
|
||||||
|
Loading…
Reference in New Issue
Block a user