diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-14 23:41:25 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-14 23:41:25 -0400 |
commit | 24daef89e0fc6056c3ff7b94880ed12b4ec3eaa6 (patch) | |
tree | 82bffc5ee8ec795d07833734929907db0f659f85 /commands/next-folder.go | |
parent | 4c8feb9aa54ddb162558482905c4723e2743e657 (diff) | |
download | aerc-24daef89e0fc6056c3ff7b94880ed12b4ec3eaa6.tar.gz |
Implement :{next,prev}-message
Diffstat (limited to 'commands/next-folder.go')
-rw-r--r-- | commands/next-folder.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/next-folder.go b/commands/next-folder.go index ed11615..dce8907 100644 --- a/commands/next-folder.go +++ b/commands/next-folder.go @@ -13,13 +13,13 @@ func init() { Register("prev-folder", NextPrevFolder) } -func usage(cmd string) error { +func nextPrevFolderUsage(cmd string) error { return errors.New(fmt.Sprintf("Usage: %s [n]", cmd)) } func NextPrevFolder(aerc *widgets.Aerc, args []string) error { if len(args) > 2 { - return usage(args[0]) + return nextPrevFolderUsage(args[0]) } var ( n int = 1 @@ -28,7 +28,7 @@ func NextPrevFolder(aerc *widgets.Aerc, args []string) error { if len(args) > 1 { n, err = strconv.Atoi(args[1]) if err != nil { - return usage(args[0]) + return nextPrevFolderUsage(args[0]) } } acct := aerc.SelectedAccount() |