From 301ead6e3af8cec14a39a0407a54abb221e0b810 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Fri, 11 Oct 2019 08:11:42 -0400 Subject: [PATCH] Change from BufferLines() to Buffer() to get rid of spaces at line breaks --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 727436c..6df5796 100644 --- a/main.go +++ b/main.go @@ -399,7 +399,8 @@ func getInputString(viewName string) (string, error) { if err != nil { return "", err } - retString := strings.Join(inputView.BufferLines(), " ") + retString := inputView.Buffer() + retString = strings.ReplaceAll(retString, "\n", "") return retString, err }