s/:term-close/:close/g
This commit is contained in:
parent
60b17c473a
commit
9ff815bb13
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package widgets
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
gocolor "image/color"
|
||||
"os"
|
||||
"os/exec"
|
||||
|
|
Loading…
Reference in a new issue