diff --git a/Gopkg.toml b/Gopkg.toml index a47fe5e93..ea5472df0 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -40,3 +40,7 @@ [[constraint]] name = "gopkg.in/src-d/go-git.v4" revision = "43d17e14b714665ab5bc2ecc220b6740779d733f" + +[[constraint]] + branch = "master" + name = "https://github.com/spkg/bom" diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 331e27975..3f6f1ac4d 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -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 })