Browse Source

gocui update to use BufferLines() versus Line

pull/4/head
Gregory Rudolph 5 years ago
parent
commit
eada3db4d0
  1. 8
      main.go

8
main.go

@ -301,8 +301,12 @@ func layout2(g *gocui.Gui) error {
} }
func getInputString(viewName string) (string, error) { func getInputString(viewName string) (string, error) {
inputView, _ := g.View(viewName) inputView, err := g.View(viewName)
return inputView.Line(0) if err != nil {
return "", err
}
retString := strings.Join(inputView.BufferLines(), " ")
return retString, err
} }
func initKeybindings() error { func initKeybindings() error {

Loading…
Cancel
Save