diff --git a/gocui-practice/main.go b/gocui-practice/main.go index b9a4982..4e8e848 100644 --- a/gocui-practice/main.go +++ b/gocui-practice/main.go @@ -142,9 +142,11 @@ func initKeybindings(g *gocui.Gui) error { strings.TrimRight(buf.String(), "\n") cmd := exec.Command("notify-send", strings.TrimRight(buf.String(), "\n")) cmd.Run() - go func(buf *strings.Builder) { - input <- buf.String() - }(buf) + v.Clear() + v.SetCursor(0, 0) + // go func(buf *strings.Builder) { + // input <- buf.String() + // }(buf) return nil }); err != nil { return err