aboutsummaryrefslogtreecommitdiff
path: root/commands/terminal/close.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/terminal/close.go')
-rw-r--r--commands/terminal/close.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/commands/terminal/close.go b/commands/terminal/close.go
index 812266c0..ded38b95 100644
--- a/commands/terminal/close.go
+++ b/commands/terminal/close.go
@@ -1,8 +1,6 @@
package terminal
import (
- "errors"
-
"git.sr.ht/~rjarry/aerc/widgets"
)
@@ -21,9 +19,6 @@ func (Close) Complete(aerc *widgets.Aerc, args []string) []string {
}
func (Close) Execute(aerc *widgets.Aerc, args []string) error {
- if len(args) != 1 {
- return errors.New("Usage: close")
- }
term, _ := aerc.SelectedTabContent().(*widgets.Terminal)
term.Close()
return nil