From 8126d82956636a2525263e2d0d985d721fdb8074 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Mar 2019 16:30:23 -0400 Subject: Add context-specific commands --- commands/quit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/quit.go') diff --git a/commands/quit.go b/commands/quit.go index 3435859..c0c387b 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") } -- cgit v1.2.3