mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-25 22:32:13 +02:00
fix: fix a crash when pressing enter in empty commits, reflog, or stash panel
This commit is contained in:
@@ -62,5 +62,9 @@ func (self *StashContext) CanRebase() bool {
|
||||
}
|
||||
|
||||
func (self *StashContext) GetSelectedRef() types.Ref {
|
||||
return self.GetSelected()
|
||||
stash := self.GetSelected()
|
||||
if stash == nil {
|
||||
return nil
|
||||
}
|
||||
return stash
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user