diff options
Diffstat (limited to 'commands/account')
-rw-r--r-- | commands/account/split.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/account/split.go b/commands/account/split.go index 080d0b1b..daf1f0f0 100644 --- a/commands/account/split.go +++ b/commands/account/split.go @@ -31,6 +31,14 @@ func (Split) Execute(aerc *widgets.Aerc, args []string) error { return errors.New("No account selected") } n := 0 + if acct.SplitSize() == 0 { + if args[0] == "split" { + n = aerc.SelectedAccount().Messages().Height() / 4 + } else { + n = aerc.SelectedAccount().Messages().Width() / 2 + } + } + var err error if len(args) > 1 { delta := false |