mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-04 23:37:41 +02:00
handle commit select on any commits panel refresh
This commit is contained in:
parent
753ca75e55
commit
62a231abb7
@ -34,6 +34,9 @@ func refreshCommits(g *gocui.Gui) error {
|
|||||||
white.Fprintln(v, commit.Name)
|
white.Fprintln(v, commit.Name)
|
||||||
}
|
}
|
||||||
refreshStatus(g)
|
refreshStatus(g)
|
||||||
|
if g.CurrentView().Name() == "commits" {
|
||||||
|
handleCommitSelect(g, v)
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
return nil
|
return nil
|
||||||
@ -135,8 +138,7 @@ func handleCommitFixup(g *gocui.Gui, v *gocui.View) error {
|
|||||||
if err := refreshCommits(g); err != nil {
|
if err := refreshCommits(g); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
refreshStatus(g)
|
return refreshStatus(g)
|
||||||
return handleCommitSelect(g, v)
|
|
||||||
}, nil)
|
}, nil)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user