summaryrefslogtreecommitdiffstats
path: root/pkg/gui/view_helpers.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-01-15 19:33:42 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-01-17 10:29:52 +1100
commit695b092c4120d41c15ad969a6ea472e38379ebbd (patch)
tree658fcc1cfd2170ece17552306fe84a017cf5fb1c /pkg/gui/view_helpers.go
parenta38d1a3b689b204f3920dcfc3949bbd7c5c61f44 (diff)
Directly send wrap argument rather than the view
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r--pkg/gui/view_helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go
index 75270e388..a88f6ce3d 100644
--- a/pkg/gui/view_helpers.go
+++ b/pkg/gui/view_helpers.go
@@ -317,7 +317,7 @@ func (gui *Gui) resizePopupPanel(g *gocui.Gui, v *gocui.View) error {
// If the confirmation panel is already displayed, just resize the width,
// otherwise continue
content := v.Buffer()
- x0, y0, x1, y1 := gui.getConfirmationPanelDimensions(g, content)
+ x0, y0, x1, y1 := gui.getConfirmationPanelDimensions(g, v.Wrap, content)
vx0, vy0, vx1, vy1 := v.Dimensions()
if vx0 == x0 && vy0 == y0 && vx1 == x1 && vy1 == y1 {
return nil