diff options
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 |