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/bug_table.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'termui/bug_table.go') diff --git a/termui/bug_table.go b/termui/bug_table.go index 1545dbc9..fb281d74 100644 --- a/termui/bug_table.go +++ b/termui/bug_table.go @@ -9,7 +9,7 @@ import ( "github.com/MichaelMure/git-bug/util/colors" "github.com/MichaelMure/git-bug/util/text" "github.com/dustin/go-humanize" - "github.com/jroimartin/gocui" + "github.com/jesseduffield/gocui" ) const bugTableView = "bugTableView" @@ -53,7 +53,7 @@ func (bt *bugTable) layout(g *gocui.Gui) error { return nil } - v, err := g.SetView(bugTableHeaderView, -1, -1, maxX, 3) + v, err := g.SetView(bugTableHeaderView, -1, -1, maxX, 3, 0) if err != nil { if err != gocui.ErrUnknownView { @@ -66,7 +66,7 @@ func (bt *bugTable) layout(g *gocui.Gui) error { v.Clear() bt.renderHeader(v, maxX) - v, err = g.SetView(bugTableView, -1, 1, maxX, maxY-3) + v, err = g.SetView(bugTableView, -1, 1, maxX, maxY-3, 0) if err != nil { if err != gocui.ErrUnknownView { @@ -97,7 +97,7 @@ func (bt *bugTable) layout(g *gocui.Gui) error { v.Clear() bt.render(v, maxX) - v, err = g.SetView(bugTableFooterView, -1, maxY-4, maxX, maxY) + v, err = g.SetView(bugTableFooterView, -1, maxY-4, maxX, maxY, 0) if err != nil { if err != gocui.ErrUnknownView { @@ -110,7 +110,7 @@ func (bt *bugTable) layout(g *gocui.Gui) error { v.Clear() bt.renderFooter(v, maxX) - v, err = g.SetView(bugTableInstructionView, -1, maxY-2, maxX, maxY) + v, err = g.SetView(bugTableInstructionView, -1, maxY-2, maxX, maxY, 0) if err != nil { if err != gocui.ErrUnknownView { -- cgit