aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/account/split.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/account/split.go b/commands/account/split.go
index 284182dc..64ca4f9e 100644
--- a/commands/account/split.go
+++ b/commands/account/split.go
@@ -30,6 +30,9 @@ func (Split) Execute(aerc *widgets.Aerc, args []string) error {
if acct == nil {
return errors.New("No account selected")
}
+ if acct.Messages().Empty() {
+ return nil
+ }
n := 0
var err error
if len(args) > 1 {