diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/account/split.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/account/split.go b/commands/account/split.go index 6641641b..7a5acc47 100644 --- a/commands/account/split.go +++ b/commands/account/split.go @@ -30,6 +30,10 @@ func (Split) Execute(aerc *widgets.Aerc, args []string) error { if acct == nil { return errors.New("No account selected") } + store := aerc.SelectedAccount().Store() + if store == nil { + return errors.New("Cannot perform action. Messages still loading") + } n := 0 if acct.SplitSize() == 0 { if args[0] == "split" { |