diff options
author | Yang Zhang <yang_zhang@iapcm.ac.cn> | 2018-12-26 22:49:25 +0800 |
---|---|---|
committer | Yang Zhang <yang_zhang@iapcm.ac.cn> | 2018-12-26 22:55:16 +0800 |
commit | 3fa2d15fb899c937900083fd7de696599371ce47 (patch) | |
tree | 7d8fd43e4eca7dfde65567714d3d35a6bfaf6a65 /termui/label_select.go | |
parent | 8a6a8055d723e523d9943244b042c778d75b02cc (diff) | |
download | git-bug-3fa2d15fb899c937900083fd7de696599371ce47.tar.gz |
Implement displaying CJK contents
Diffstat (limited to 'termui/label_select.go')
-rw-r--r-- | termui/label_select.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/termui/label_select.go b/termui/label_select.go index 244001df..c93dd833 100644 --- a/termui/label_select.go +++ b/termui/label_select.go @@ -6,7 +6,7 @@ import ( "github.com/MichaelMure/git-bug/bug" "github.com/MichaelMure/git-bug/cache" - "github.com/jroimartin/gocui" + "github.com/jesseduffield/gocui" ) const labelSelectView = "labelSelectView" @@ -105,7 +105,7 @@ func (ls *labelSelect) layout(g *gocui.Gui) error { x0 := 1 y0 := 0 - ls.scroll - v, err := g.SetView(labelSelectView, x0, 0, x0+width, maxY-2) + v, err := g.SetView(labelSelectView, x0, 0, x0+width, maxY-2, 0) if err != nil { if err != gocui.ErrUnknownView { return err @@ -116,7 +116,7 @@ func (ls *labelSelect) layout(g *gocui.Gui) error { for i, label := range ls.labels { viewname := fmt.Sprintf("view%d", i) - v, err := g.SetView(viewname, x0+2, y0, x0+width-2, y0+2) + v, err := g.SetView(viewname, x0+2, y0, x0+width-2, y0+2, 0) if err != nil && err != gocui.ErrUnknownView { return err } @@ -131,7 +131,7 @@ func (ls *labelSelect) layout(g *gocui.Gui) error { y0 += 2 } - v, err = g.SetView(labelSelectInstructionsView, -1, maxY-2, maxX, maxY) + v, err = g.SetView(labelSelectInstructionsView, -1, maxY-2, maxX, maxY, 0) ls.childViews = append(ls.childViews, labelSelectInstructionsView) if err != nil { if err != gocui.ErrUnknownView { |