From eb9fbb0a33caecf4186a7db4ce984db22abbd596 Mon Sep 17 00:00:00 2001 From: Ryooooooga Date: Thu, 1 Sep 2022 19:31:40 +0900 Subject: fix(confirmation_panel.go): fix initial origin of editor box --- pkg/gui/view_helpers.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkg/gui/view_helpers.go') 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 -- cgit v1.2.3