mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
consider whether the view has focus when rendering the contents of a view
This commit is contained in:
@ -233,6 +233,9 @@ func (gui *Gui) onFocusLost(v *gocui.View) error {
|
||||
if v == nil {
|
||||
return nil
|
||||
}
|
||||
if v.Name() == "branches" {
|
||||
gui.renderListPanel(gui.getBranchesView(), gui.State.Branches)
|
||||
}
|
||||
gui.Log.Info(v.Name() + " focus lost")
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user