1
0
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:
Jesse Duffield 2020-10-02 20:05:45 +10:00
parent 9763fa9997
commit 76f7726c47

View File

@ -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 {