diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-01-15 19:33:42 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-01-17 10:29:52 +1100 |
commit | 695b092c4120d41c15ad969a6ea472e38379ebbd (patch) | |
tree | 658fcc1cfd2170ece17552306fe84a017cf5fb1c /pkg/gui/view_helpers.go | |
parent | a38d1a3b689b204f3920dcfc3949bbd7c5c61f44 (diff) |
Directly send wrap argument rather than the view
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 2 |
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 |