diff options
Diffstat (limited to 'commands/msg/delete.go')
-rw-r--r-- | commands/msg/delete.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/msg/delete.go b/commands/msg/delete.go index ceb570b3..9db850ec 100644 --- a/commands/msg/delete.go +++ b/commands/msg/delete.go @@ -43,9 +43,10 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error { return err } sel := store.Selected() + marker := store.Marker() + marker.ClearVisualMark() // caution, can be nil next := findNextNonDeleted(uids, store) - store.ClearVisualMark() store.Delete(uids, func(msg types.WorkerMessage) { switch msg := msg.(type) { case *types.Done: @@ -80,11 +81,11 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error { } } case *types.Error: - store.Remark() + marker.Remark() store.Select(sel.Uid) aerc.PushError(msg.Error.Error()) case *types.Unsupported: - store.Remark() + marker.Remark() store.Select(sel.Uid) // notmuch doesn't support it, we want the user to know aerc.PushError(" error, unsupported for this worker") |