mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-07 22:02:56 +03:00
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.
This commit is contained in:
@@ -404,7 +404,6 @@ func (gui *Gui) getCommitMessageSetTextareaTextFn(getView func() *gocui.View) fu
|
|||||||
view := getView()
|
view := getView()
|
||||||
view.ClearTextArea()
|
view.ClearTextArea()
|
||||||
view.TextArea.TypeString(text)
|
view.TextArea.TypeString(text)
|
||||||
gui.helpers.Confirmation.ResizeCommitMessagePanels()
|
|
||||||
view.RenderTextArea()
|
view.RenderTextArea()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -218,7 +218,6 @@ func (self *ConfirmationHelper) CreatePopupPanel(ctx goContext.Context, opts typ
|
|||||||
textArea := confirmationView.TextArea
|
textArea := confirmationView.TextArea
|
||||||
textArea.Clear()
|
textArea.Clear()
|
||||||
textArea.TypeString(opts.Prompt)
|
textArea.TypeString(opts.Prompt)
|
||||||
self.resizeConfirmationPanel()
|
|
||||||
confirmationView.RenderTextArea()
|
confirmationView.RenderTextArea()
|
||||||
} else {
|
} else {
|
||||||
self.c.ResetViewOrigin(confirmationView)
|
self.c.ResetViewOrigin(confirmationView)
|
||||||
|
Reference in New Issue
Block a user