mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
view_helpers.go: replace \r with \r\n
This commit is contained in:
parent
018b43163c
commit
cdc6d45fa4
|
|
@ -218,7 +218,9 @@ func (gui *Gui) renderString(g *gocui.Gui, viewName, s string) error {
|
|||
return nil
|
||||
}
|
||||
v.Clear()
|
||||
fmt.Fprint(v, bom.Clean([]byte(s)))
|
||||
output := string(bom.Clean([]byte(s)))
|
||||
strings.Replace(output, "\r", "\r\n", -1)
|
||||
fmt.Fprint(v, output)
|
||||
v.Wrap = true
|
||||
return nil
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue