diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-10 22:07:45 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-10 22:32:13 +1100 |
commit | de5bcb8b9c65e63a992ce278e63f0f8e31a57969 (patch) | |
tree | 7df962782d7345e3b002d4578fa152e5507d2ad1 /pkg/gui/confirmation_panel.go | |
parent | 98666186ee3365cd9b65df7a9a7ed4f430b77d50 (diff) |
add some shameless self promotion
Diffstat (limited to 'pkg/gui/confirmation_panel.go')
-rw-r--r-- | pkg/gui/confirmation_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/confirmation_panel.go b/pkg/gui/confirmation_panel.go index d0516f2e8..6913400a1 100644 --- a/pkg/gui/confirmation_panel.go +++ b/pkg/gui/confirmation_panel.go @@ -56,7 +56,7 @@ func (gui *Gui) getMessageHeight(wrap bool, message string, width int) int { func (gui *Gui) getConfirmationPanelDimensions(g *gocui.Gui, wrap bool, prompt string) (int, int, int, int) { width, height := g.Size() - panelWidth := width / 2 + panelWidth := 4 * width / 7 panelHeight := gui.getMessageHeight(wrap, prompt, panelWidth) return width/2 - panelWidth/2, height/2 - panelHeight/2 - panelHeight%2 - 1, |