s/:term-close/:close/g

This commit is contained in:
Drew DeVault 2019-03-17 17:45:44 -04:00
parent 60b17c473a
commit 9ff815bb13
2 changed files with 3 additions and 3 deletions

View file

@ -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 {

View file

@ -1,7 +1,6 @@
package widgets
import (
"fmt"
gocolor "image/color"
"os"
"os/exec"