Skip to content

Commit

Permalink
Remove redundant calls to resize editable panels at creating time
Browse files Browse the repository at this point in the history
The only purpose of this was to scroll the editable text correctly (see
#2146); now that gocui takes care
of that, we no longer need to do this.
  • Loading branch information
stefanhaller committed Jun 28, 2024
1 parent 32cfe7a commit bb01648
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion pkg/gui/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
1 change: 0 additions & 1 deletion pkg/gui/controllers/helpers/confirmation_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bb01648

Please sign in to comment.