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() {
|
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 {
|
func TermClose(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: term-close")
|
return errors.New("Usage: close")
|
||||||
}
|
}
|
||||||
thost, ok := aerc.SelectedTab().(*widgets.TermHost)
|
thost, ok := aerc.SelectedTab().(*widgets.TermHost)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package widgets
|
package widgets
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
gocolor "image/color"
|
gocolor "image/color"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
Loading…
Reference in a new issue