aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands/term-close.go5
-rw-r--r--widgets/terminal.go1
2 files changed, 3 insertions, 3 deletions
diff --git a/commands/term-close.go b/commands/term-close.go
index 30f3392..ae2b55b 100644
--- a/commands/term-close.go
+++ b/commands/term-close.go
@@ -7,12 +7,13 @@ import (
)
func init() {
- Register("term-close", TermClose)
+ // TODO: Move this command into a terminal-specific command set
+ Register("close", TermClose)
}
func TermClose(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
- return errors.New("Usage: term-close")
+ return errors.New("Usage: close")
}
thost, ok := aerc.SelectedTab().(*widgets.TermHost)
if !ok {
diff --git a/widgets/terminal.go b/widgets/terminal.go
index 098543f..9849b73 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -1,7 +1,6 @@
package widgets
import (
- "fmt"
gocolor "image/color"
"os"
"os/exec"