1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-01 22:52:01 +02:00

prepare for OnRender prop

This commit is contained in:
Jesse Duffield
2020-08-19 18:06:51 +10:00
parent 2fdadd383a
commit a32947e7a7
4 changed files with 35 additions and 26 deletions

View File

@@ -454,18 +454,6 @@ func (gui *Gui) onBranchesTabClick(tabIndex int) error {
return gui.switchContext(context)
}
func (gui *Gui) tabIndexForContext(c Context, tabContexts tabContexts) int {
for i, tabContext := range tabContexts {
for _, context := range tabContext.contexts {
if context.GetKey() == c.GetKey() {
return i
}
}
}
gui.Log.Errorf("tab not found for context %s", c.GetKey())
return 0
}
func (gui *Gui) refreshBranchesViewWithSelection() error {
branchesView := gui.getBranchesView()