Stop the events() goroutine when deleted/killed/quitted
1 files changed, 2 insertions(+), 2 deletions(-) M Git.go
M Git.go => Git.go +2 -2
@@ 59,8 59,6 @@ func show() { } func commit() { wipe() cmd := exec.Command("git", "commit") r, w, err := os.Pipe() @@ if err != nil { 72,6 70,7 @@ func commit() { cmd.Env = append(os.Environ(), "GIT_EDITOR=acme-ed.sh") err = cmd.Start() w.Close() wipe() if err != nil { r.Close() @@ win.Fprintf("data", "(exec: %s)\n", err) 129,6 128,7 @@ func events() { switch text { case "Kill", "Quit", "Del": win.Ctl("delete") break case "Status": status() case "Diff":