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

Change from BufferLines() to Buffer() to get rid of spaces at line breaks

This commit is contained in:
Gregory Rudolph
2019-10-11 08:11:42 -04:00
parent 39cb8f2519
commit 301ead6e3a

View File

@ -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
}