1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

NormalizeLinefeeds removes rather than converts Window/Mac style lf's

This commit is contained in:
Tommy Nguyen
2018-08-19 08:48:03 -04:00
parent d2bdac29aa
commit 766197de9d
3 changed files with 15 additions and 13 deletions

View File

@ -219,7 +219,8 @@ func (gui *Gui) renderString(g *gocui.Gui, viewName, s string) error {
return nil
}
v.Clear()
output := utils.NormalizeLinefeeds(string(bom.Clean([]byte(s))))
output := string(bom.Clean([]byte(s)))
output = utils.NormalizeLinefeeds(s)
fmt.Fprint(v, output)
v.Wrap = true
return nil