aerc/commands/next-folder.go

16 lines
250 B
Go
Raw Normal View History

2019-03-11 02:15:24 +01:00
package commands
import (
"git.sr.ht/~sircmpwn/aerc2/widgets"
)
func init() {
Register("next-folder", NextFolder)
}
func NextFolder(aerc *widgets.Aerc, cmd string) error {
acct := aerc.SelectedAccount()
acct.Directories().Next()
return nil
}