mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-25 22:32:13 +02:00
consider whether the view has focus when rendering the contents of a view
This commit is contained in:
@@ -50,7 +50,8 @@ func (gui *Gui) handleMenuClose(g *gocui.Gui, v *gocui.View) error {
|
||||
}
|
||||
|
||||
func (gui *Gui) createMenu(title string, items interface{}, handlePress func(int) error) error {
|
||||
list, err := utils.RenderList(items)
|
||||
isFocused := gui.g.CurrentView().Name() == "menu"
|
||||
list, err := utils.RenderList(items, isFocused)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user