~laumann/acme-git

23608953a12b56bef53857de25abfde63e9700bb — Thomas Bracht Laumann Jespersen 2 years ago 5e7e77c
clear the buffer on every status execute
1 files changed, 8 insertions(+), 1 deletions(-)

M Git.go
M Git.go => Git.go +8 -1
@@ 11,7 11,14 @@ import (

var win *acme.Win

func wipe() {
	win.Addr(",")
	win.Write("data", nil)
}

func status() {
	wipe()

	cmd := exec.Command("git", "status")
	r, w, err := os.Pipe()
	if err != nil {


@@ 52,7 59,7 @@ func main() {
	win.Ctl("clean")

	win.Fprintf("tag", "Status Diff Log Commit")
	win.Fprintf("body", "PLACEHOLDER")
	//win.Fprintf("body", "PLACEHOLDER")

	go events()
	r, err := acme.Log()