1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Extract a method CommitFilesContext.ReInit

Right now it doesn't do very much yet, but it's still worth it even in this
state, I'd say. The function is going to become a bit longer in the next commit,
though.
This commit is contained in:
Stefan Haller
2024-08-28 12:53:22 +02:00
parent 442592a149
commit a6656e307c
3 changed files with 8 additions and 5 deletions

View File

@ -78,3 +78,9 @@ func (self *CommitFilesContext) GetDiffTerminals() []string {
func (self *CommitFilesContext) ModelSearchResults(searchStr string, caseSensitive bool) []gocui.SearchPosition {
return nil
}
func (self *CommitFilesContext) ReInit(ref types.Ref) {
self.SetRef(ref)
self.SetTitleRef(ref.Description())
self.GetView().Title = self.Title()
}