diff options
Diffstat (limited to 'commands/next-folder.go')
-rw-r--r-- | commands/next-folder.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/next-folder.go b/commands/next-folder.go index dce8907..f0332c6 100644 --- a/commands/next-folder.go +++ b/commands/next-folder.go @@ -32,6 +32,9 @@ func NextPrevFolder(aerc *widgets.Aerc, args []string) error { } } acct := aerc.SelectedAccount() + if acct == nil { + return errors.New("No account selected") + } for ; n > 0; n-- { if args[0] == "prev-folder" { acct.Directories().Prev() |