mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-04 03:48:07 +02:00
dont close over loop variables ugh I hate this language feature
This commit is contained in:
parent
9763fa9997
commit
76f7726c47
@ -1645,6 +1645,7 @@ func (gui *Gui) keybindings() error {
|
||||
}
|
||||
|
||||
for viewName := range gui.viewTabContextMap() {
|
||||
viewName := viewName
|
||||
tabClickCallback := func(tabIndex int) error { return gui.onViewTabClick(viewName, tabIndex) }
|
||||
|
||||
if err := gui.g.SetTabClickBinding(viewName, tabClickCallback); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user