From 67e56e5fbc599e4ea520628fef36dae08ae3131b Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 5 Aug 2018 17:13:12 +1000 Subject: [PATCH] support carriage returns for windows machines --- view_helpers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/view_helpers.go b/view_helpers.go index 31cd89c40..bb8b86da7 100644 --- a/view_helpers.go +++ b/view_helpers.go @@ -200,6 +200,7 @@ func renderString(g *gocui.Gui, viewName, s string) error { } func splitLines(multilineString string) []string { + multilineString = strings.Replace(multilineString, "\r", "", -1) if multilineString == "" || multilineString == "\n" { return make([]string, 0) }