mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
fix: fix a crash when pressing enter in empty commits, reflog, or stash panel
This commit is contained in:
@ -84,7 +84,11 @@ func (self *LocalCommitsContext) CanRebase() bool {
|
||||
}
|
||||
|
||||
func (self *LocalCommitsContext) GetSelectedRef() types.Ref {
|
||||
return self.GetSelected()
|
||||
commit := self.GetSelected()
|
||||
if commit == nil {
|
||||
return nil
|
||||
}
|
||||
return commit
|
||||
}
|
||||
|
||||
func (self *LocalCommitsViewModel) SetLimitCommits(value bool) {
|
||||
|
Reference in New Issue
Block a user