aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/account/split.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/account/split.go b/commands/account/split.go
index 64ca4f9e..72292c43 100644
--- a/commands/account/split.go
+++ b/commands/account/split.go
@@ -57,6 +57,10 @@ func (Split) Execute(aerc *widgets.Aerc, args []string) error {
// toggling the split
n = 0
}
+ if n < 0 {
+ // Don't allow split to go negative
+ n = 1
+ }
if args[0] == "split" {
return acct.Split(n)
}