From 3fa2d15fb899c937900083fd7de696599371ce47 Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Wed, 26 Dec 2018 22:49:25 +0800 Subject: Implement displaying CJK contents --- termui/show_bug.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'termui/show_bug.go') diff --git a/termui/show_bug.go b/termui/show_bug.go index a1f4b3fe..49754d83 100644 --- a/termui/show_bug.go +++ b/termui/show_bug.go @@ -10,7 +10,7 @@ import ( "github.com/MichaelMure/git-bug/util/colors" "github.com/MichaelMure/git-bug/util/git" "github.com/MichaelMure/git-bug/util/text" - "github.com/jroimartin/gocui" + "github.com/jesseduffield/gocui" ) const showBugView = "showBugView" @@ -48,7 +48,7 @@ func (sb *showBug) layout(g *gocui.Gui) error { maxX, maxY := g.Size() sb.childViews = nil - v, err := g.SetView(showBugView, 0, 0, maxX*2/3, maxY-2) + v, err := g.SetView(showBugView, 0, 0, maxX*2/3, maxY-2, 0) if err != nil { if err != gocui.ErrUnknownView { @@ -65,7 +65,7 @@ func (sb *showBug) layout(g *gocui.Gui) error { return err } - v, err = g.SetView(showBugSidebarView, maxX*2/3+1, 0, maxX-1, maxY-2) + v, err = g.SetView(showBugSidebarView, maxX*2/3+1, 0, maxX-1, maxY-2, 0) if err != nil { if err != gocui.ErrUnknownView { @@ -82,7 +82,7 @@ func (sb *showBug) layout(g *gocui.Gui) error { return err } - v, err = g.SetView(showBugInstructionView, -1, maxY-2, maxX, maxY) + v, err = g.SetView(showBugInstructionView, -1, maxY-2, maxX, maxY, 0) if err != nil { if err != gocui.ErrUnknownView { @@ -382,7 +382,7 @@ func emptyMessagePlaceholder() string { } func (sb *showBug) createOpView(g *gocui.Gui, name string, x0 int, y0 int, maxX int, height int, selectable bool) (*gocui.View, error) { - v, err := g.SetView(name, x0, y0, maxX, y0+height+1) + v, err := g.SetView(name, x0, y0, maxX, y0+height+1, 0) if err != nil && err != gocui.ErrUnknownView { return nil, err @@ -402,7 +402,7 @@ func (sb *showBug) createOpView(g *gocui.Gui, name string, x0 int, y0 int, maxX } func (sb *showBug) createSideView(g *gocui.Gui, name string, x0 int, y0 int, maxX int, height int) (*gocui.View, error) { - v, err := g.SetView(name, x0, y0, maxX, y0+height+1) + v, err := g.SetView(name, x0, y0, maxX, y0+height+1, 0) if err != nil && err != gocui.ErrUnknownView { return nil, err -- cgit