diff options
author | Ryooooooga <eial5q265e5@gmail.com> | 2022-09-01 19:31:40 +0900 |
---|---|---|
committer | Ryooooooga <eial5q265e5@gmail.com> | 2022-09-01 19:44:17 +0900 |
commit | eb9fbb0a33caecf4186a7db4ce984db22abbd596 (patch) | |
tree | b88c6b8ea422d1ff9d7a6758c37d90fe4d8caf1f /pkg/gui/view_helpers.go | |
parent | 448ff80d7d7a75f439b46ce4068615ea02764df5 (diff) |
fix(confirmation_panel.go): fix initial origin of editor box
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 713639251..db4fe476d 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -87,7 +87,11 @@ func (gui *Gui) resizeConfirmationPanel() { } panelWidth := gui.getConfirmationPanelWidth() prompt := gui.Views.Confirmation.Buffer() - wrap := !gui.Views.Confirmation.Editable + wrap := true + if gui.Views.Confirmation.Editable { + prompt = gui.Views.Confirmation.TextArea.GetContent() + wrap = false + } panelHeight := gui.getMessageHeight(wrap, prompt, panelWidth) + suggestionsViewHeight x0, y0, x1, y1 := gui.getConfirmationPanelDimensionsAux(panelWidth, panelHeight) confirmationViewBottom := y1 - suggestionsViewHeight |