mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-23 12:18:51 +02:00
unused method
This commit is contained in:
parent
2c3f5be093
commit
88ae550b93
@ -107,26 +107,6 @@ func (gui *Gui) handleEscapePatchBuildingPanel() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) refreshSecondaryPatchPanel() error {
|
|
||||||
// TODO: swap out for secondaryPatchPanelUpdateOpts
|
|
||||||
|
|
||||||
if gui.GitCommand.PatchManager.Active() {
|
|
||||||
gui.splitMainPanel(true)
|
|
||||||
secondaryView := gui.getSecondaryView()
|
|
||||||
secondaryView.Highlight = true
|
|
||||||
secondaryView.Wrap = false
|
|
||||||
|
|
||||||
gui.g.Update(func(*gocui.Gui) error {
|
|
||||||
gui.setViewContent(gui.getSecondaryView(), gui.GitCommand.PatchManager.RenderAggregatedPatchColored(false))
|
|
||||||
return nil
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
gui.splitMainPanel(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts {
|
func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts {
|
||||||
if gui.GitCommand.PatchManager.Active() {
|
if gui.GitCommand.PatchManager.Active() {
|
||||||
patch := gui.GitCommand.PatchManager.RenderAggregatedPatchColored(false)
|
patch := gui.GitCommand.PatchManager.RenderAggregatedPatchColored(false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user