From eada3db4d0a358f9dab929a793c672e156884887 Mon Sep 17 00:00:00 2001
From: Gregory Rudolph <rudi9719@keybase.io>
Date: Thu, 10 Oct 2019 09:48:01 -0400
Subject: [PATCH] gocui update to use BufferLines() versus Line

---
 main.go | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

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 {