1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-03 13:21:56 +02: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

@ -40,3 +40,7 @@
[[constraint]]
name = "gopkg.in/src-d/go-git.v4"
revision = "43d17e14b714665ab5bc2ecc220b6740779d733f"
[[constraint]]
branch = "master"
name = "https://github.com/spkg/bom"

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
})