From bb016485212b322a11debaa4a64494f5904e06b5 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Tue, 25 Jun 2024 18:18:55 +0200 Subject: [PATCH] Remove redundant calls to resize editable panels at creating time The only purpose of this was to scroll the editable text correctly (see https://github.com/jesseduffield/lazygit/pull/2146); now that gocui takes care of that, we no longer need to do this. --- pkg/gui/controllers.go | 1 - pkg/gui/controllers/helpers/confirmation_helper.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/gui/controllers.go b/pkg/gui/controllers.go index d6ac5a268..ba39fef5a 100644 --- a/pkg/gui/controllers.go +++ b/pkg/gui/controllers.go @@ -404,7 +404,6 @@ func (gui *Gui) getCommitMessageSetTextareaTextFn(getView func() *gocui.View) fu view := getView() view.ClearTextArea() view.TextArea.TypeString(text) - gui.helpers.Confirmation.ResizeCommitMessagePanels() view.RenderTextArea() } } diff --git a/pkg/gui/controllers/helpers/confirmation_helper.go b/pkg/gui/controllers/helpers/confirmation_helper.go index d564eeabc..9fa2ce8a8 100644 --- a/pkg/gui/controllers/helpers/confirmation_helper.go +++ b/pkg/gui/controllers/helpers/confirmation_helper.go @@ -218,7 +218,6 @@ func (self *ConfirmationHelper) CreatePopupPanel(ctx goContext.Context, opts typ textArea := confirmationView.TextArea textArea.Clear() textArea.TypeString(opts.Prompt) - self.resizeConfirmationPanel() confirmationView.RenderTextArea() } else { self.c.ResetViewOrigin(confirmationView)