remove yank/delete messages

Mentioned in #13.
This commit is contained in:
Gokcehan 2016-11-10 23:47:07 +03:00
parent 3b5759efba
commit d151334f8f

10
eval.go
View File

@ -291,11 +291,6 @@ func (e *CallExpr) eval(app *App, args []string) {
log.Printf(msg)
return
}
if len(app.nav.marks) == 0 {
app.ui.message = "file saved for copy"
} else {
app.ui.message = fmt.Sprintf("%d files saved for copy", len(app.nav.marks))
}
app.nav.marks = make(map[string]bool)
if err := sendServer("send sync"); err != nil {
msg := fmt.Sprintf("yank: %s", err)
@ -309,11 +304,6 @@ func (e *CallExpr) eval(app *App, args []string) {
log.Printf(msg)
return
}
if len(app.nav.marks) == 0 {
app.ui.message = "file saved for move"
} else {
app.ui.message = fmt.Sprintf("%d files saved for move", len(app.nav.marks))
}
app.nav.marks = make(map[string]bool)
if err := sendServer("send sync"); err != nil {
msg := fmt.Sprintf("delete: %s", err)