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

ReplaceAll reduced to Replace to avoid requiring go1.12+

This commit is contained in:
Gregory Rudolph
2019-10-11 11:48:08 -04:00
parent 4d24c38fe8
commit a73e52d3a3

View File

@ -404,7 +404,7 @@ func getInputString(viewName string) (string, error) {
return "", err return "", err
} }
retString := inputView.Buffer() retString := inputView.Buffer()
retString = strings.ReplaceAll(retString, "\n", "") retString = strings.Replace(retString, "\n", "", 800)
return retString, err return retString, err
} }