From a73e52d3a33fa9e2097472f6d5cdc4950c5e07e4 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Fri, 11 Oct 2019 11:48:08 -0400 Subject: [PATCH] ReplaceAll reduced to Replace to avoid requiring go1.12+ --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f1247fd..d3f7064 100644 --- a/main.go +++ b/main.go @@ -404,7 +404,7 @@ func getInputString(viewName string) (string, error) { return "", err } retString := inputView.Buffer() - retString = strings.ReplaceAll(retString, "\n", "") + retString = strings.Replace(retString, "\n", "", 800) return retString, err }