mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
fix: fix a crash when pressing enter in empty commits, reflog, or stash panel
This commit is contained in:
@@ -62,7 +62,11 @@ func (self *ReflogCommitsContext) CanRebase() bool {
|
||||
}
|
||||
|
||||
func (self *ReflogCommitsContext) GetSelectedRef() types.Ref {
|
||||
return self.GetSelected()
|
||||
commit := self.GetSelected()
|
||||
if commit == nil {
|
||||
return nil
|
||||
}
|
||||
return commit
|
||||
}
|
||||
|
||||
func (self *ReflogCommitsContext) GetCommits() []*models.Commit {
|
||||
|
||||
Reference in New Issue
Block a user