1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-06 03:53:59 +02:00

fix bug with tags panel

This commit is contained in:
Jesse Duffield 2021-04-06 11:16:41 +10:00
parent cf99b47ec0
commit 4441cf1045

View File

@ -75,12 +75,14 @@ func (gui *Gui) refreshTags() error {
}
func (gui *Gui) withSelectedTag(f func(tag *models.Tag) error) func() error {
tag := gui.getSelectedTag()
if tag == nil {
return nil
}
return func() error {
tag := gui.getSelectedTag()
if tag == nil {
return nil
}
return func() error { return f(tag) }
return f(tag)
}
}
func (gui *Gui) handleCheckoutTag(tag *models.Tag) error {