diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index f6b567911..5a46fc383 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -219,7 +219,7 @@ func (gui *Gui) renderString(g *gocui.Gui, viewName, s string) error { } v.Clear() output := string(bom.Clean([]byte(s))) - strings.Replace(output, "\r", "\r\n", -1) + output = strings.Replace(output, "\r", "\r\n", -1) fmt.Fprint(v, output) v.Wrap = true return nil