diff options
Diffstat (limited to 'commands/account')
-rw-r--r-- | commands/account/select-message.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/account/select-message.go b/commands/account/select-message.go index 54f48f2..c9e4f8a 100644 --- a/commands/account/select-message.go +++ b/commands/account/select-message.go @@ -29,6 +29,9 @@ func SelectMessage(aerc *widgets.Aerc, args []string) error { if acct == nil { return errors.New("No account selected") } + if acct.Messages().Empty() { + return nil + } acct.Messages().Select(n) return nil } |