aboutsummaryrefslogtreecommitdiffstats
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 5d52bbc5..913a3387 100644
--- a/commands/terminal/close.go
+++ b/commands/terminal/close.go
@@ -1,8 +1,6 @@
package terminal
import (
- "errors"
-
"git.sr.ht/~rjarry/aerc/app"
)
@@ -21,9 +19,6 @@ func (Close) Complete(args []string) []string {
}
func (Close) Execute(args []string) error {
- if len(args) != 1 {
- return errors.New("Usage: close")
- }
term, _ := app.SelectedTabContent().(*app.Terminal)
term.Close()
return nil