aboutsummaryrefslogtreecommitdiffstats
path: root/commands/prev-folder.go
blob: a38214fcd9aed37c931ff6a34bd00d47575e2d8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package commands

import (
	"git.sr.ht/~sircmpwn/aerc2/widgets"
)

func init() {
	Register("prev-folder", PrevFolder)
}

func PrevFolder(aerc *widgets.Aerc, cmd string) error {
	acct := aerc.SelectedAccount()
	acct.Directories().Prev()
	return nil
}