aboutsummaryrefslogtreecommitdiffstats
path: root/commands/quit.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-21 16:30:23 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-21 16:30:23 -0400
commit8126d82956636a2525263e2d0d985d721fdb8074 (patch)
tree2c5f5c2e2fb2e5ecfb4c12eb8ef6bc575edc39f8 /commands/quit.go
parentfe79a9a5879936a7f5b16cc6a8be1d93ec1bfae7 (diff)
downloadaerc-8126d82956636a2525263e2d0d985d721fdb8074.tar.gz
Add context-specific commands
Diffstat (limited to 'commands/quit.go')
-rw-r--r--commands/quit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/quit.go b/commands/quit.go
index 34358595..c0c387b5 100644
--- a/commands/quit.go
+++ b/commands/quit.go
@@ -7,7 +7,7 @@ import (
)
func init() {
- Register("quit", ChangeQuit)
+ register("quit", CommandQuit)
}
type ErrorExit int
@@ -16,7 +16,7 @@ func (err ErrorExit) Error() string {
return "exit"
}
-func ChangeQuit(aerc *widgets.Aerc, args []string) error {
+func CommandQuit(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: quit")
}