mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
termui: fix bug when trying to edit without selection
This commit is contained in:
parent
0e53d2555e
commit
ff686e6d5b
@ -639,6 +639,10 @@ func (sb *showBug) edit(g *gocui.Gui, v *gocui.View) error {
|
|||||||
return sb.editLabels(g, snap)
|
return sb.editLabels(g, snap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if sb.selected == "" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
op, err := snap.SearchTimelineItem(git.Hash(sb.selected))
|
op, err := snap.SearchTimelineItem(git.Hash(sb.selected))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user