1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

#157: clean BOM, allowing CSV files to display correctly

This commit is contained in:
Tommy Nguyen
2018-08-16 01:53:53 -04:00
parent 59ab38fff6
commit f09515867d
2 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import (
"time"
"github.com/jesseduffield/gocui"
"github.com/spkg/bom"
)
var cyclableViews = []string{"files", "branches", "commits", "stash"}
@ -191,7 +192,7 @@ func (gui *Gui) renderString(g *gocui.Gui, viewName, s string) error {
return nil
}
v.Clear()
fmt.Fprint(v, s)
fmt.Fprint(v, bom.Clean(s))
v.Wrap = true
return nil
})