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 54f48f2e..c9e4f8a5 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 } |