summary refs log tree commit diff stats
path: root/commands/select-message.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/select-message.go')
-rw-r--r--commands/select-message.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/select-message.go b/commands/select-message.go
index 868d1fd..728d31b 100644
--- a/commands/select-message.go
+++ b/commands/select-message.go
@@ -26,6 +26,9 @@ func SelectMessage(aerc *widgets.Aerc, args []string) error {
 		}
 	}
 	acct := aerc.SelectedAccount()
+	if acct == nil {
+		return errors.New("No account selected")
+	}
 	acct.Messages().Select(n)
 	return nil
 }