diff --git a/main.go b/main.go index 981172a..8a697fa 100644 --- a/main.go +++ b/main.go @@ -301,8 +301,12 @@ func layout2(g *gocui.Gui) error { } func getInputString(viewName string) (string, error) { - inputView, _ := g.View(viewName) - return inputView.Line(0) + inputView, err := g.View(viewName) + if err != nil { + return "", err + } + retString := strings.Join(inputView.BufferLines(), " ") + return retString, err } func initKeybindings() error {