diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-11 22:04:16 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-11 22:14:46 +0200 |
commit | 3605887345792d2f981f971c6c4a2cb7f86a343e (patch) | |
tree | afd525b6e3a638e4c619a5a986fcb2811c297444 /termui/msg_popup.go | |
parent | 7b05983c19af4da70f2a9a5062913f4e4f5d5faa (diff) | |
download | git-bug-3605887345792d2f981f971c6c4a2cb7f86a343e.tar.gz |
reorganize package for a more idomatic go
Diffstat (limited to 'termui/msg_popup.go')
-rw-r--r-- | termui/msg_popup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/termui/msg_popup.go b/termui/msg_popup.go index dea24fb4..0ce390dc 100644 --- a/termui/msg_popup.go +++ b/termui/msg_popup.go @@ -3,7 +3,7 @@ package termui import ( "fmt" - "github.com/MichaelMure/git-bug/util" + "github.com/MichaelMure/git-bug/util/text" "github.com/jroimartin/gocui" ) @@ -45,7 +45,7 @@ func (ep *msgPopup) layout(g *gocui.Gui) error { maxX, maxY := g.Size() width := minInt(60, maxX) - wrapped, lines := util.TextWrap(ep.message, width-2) + wrapped, lines := text.Wrap(ep.message, width-2) height := minInt(lines+1, maxY-3) x0 := (maxX - width) / 2 y0 := (maxY - height) / 2 |