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:
parent
cf99b47ec0
commit
4441cf1045
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user