1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 11:07:22 +00:00

gocui update to use BufferLines() versus Line

This commit is contained in:
Gregory Rudolph
2019-10-10 09:48:01 -04:00
parent a7b169c8ea
commit eada3db4d0

View File

@ -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 {