Skip to content

Commit

Permalink
#157: clean BOM, allowing CSV files to display correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
remyabel2 committed Aug 16, 2018
1 parent 59ab38f commit f095158
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@
[[constraint]]
name = "gopkg.in/src-d/go-git.v4"
revision = "43d17e14b714665ab5bc2ecc220b6740779d733f"

[[constraint]]
branch = "master"
name = "https://github.com/spkg/bom"
3 changes: 2 additions & 1 deletion pkg/gui/view_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"time"

"github.com/jesseduffield/gocui"
"github.com/spkg/bom"
)

var cyclableViews = []string{"files", "branches", "commits", "stash"}
Expand Down Expand Up @@ -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
})
Expand Down

0 comments on commit f095158

Please sign in to comment.