aboutsummaryrefslogtreecommitdiffstats
path: root/termui/input_popup.go
diff options
context:
space:
mode:
authorYang Zhang <yang_zhang@iapcm.ac.cn>2018-12-26 22:49:25 +0800
committerYang Zhang <yang_zhang@iapcm.ac.cn>2018-12-26 22:55:16 +0800
commit3fa2d15fb899c937900083fd7de696599371ce47 (patch)
tree7d8fd43e4eca7dfde65567714d3d35a6bfaf6a65 /termui/input_popup.go
parent8a6a8055d723e523d9943244b042c778d75b02cc (diff)
downloadgit-bug-3fa2d15fb899c937900083fd7de696599371ce47.tar.gz
Implement displaying CJK contents
Diffstat (limited to 'termui/input_popup.go')
-rw-r--r--termui/input_popup.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/termui/input_popup.go b/termui/input_popup.go
index db0ec619..7500168f 100644
--- a/termui/input_popup.go
+++ b/termui/input_popup.go
@@ -3,7 +3,7 @@ package termui
import (
"io/ioutil"
- "github.com/jroimartin/gocui"
+ "github.com/jesseduffield/gocui"
)
const inputPopupView = "inputPopupView"
@@ -46,7 +46,7 @@ func (ip *inputPopup) layout(g *gocui.Gui) error {
x0 := (maxX - width) / 2
y0 := (maxY - height) / 2
- v, err := g.SetView(inputPopupView, x0, y0, x0+width, y0+height)
+ v, err := g.SetView(inputPopupView, x0, y0, x0+width, y0+height, 0)
if err != nil {
if err != gocui.ErrUnknownView {
return err