aboutsummaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
Diffstat (limited to 'termui')
-rw-r--r--termui/show_bug.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/termui/show_bug.go b/termui/show_bug.go
index 733c801e..68a46a31 100644
--- a/termui/show_bug.go
+++ b/termui/show_bug.go
@@ -639,6 +639,10 @@ func (sb *showBug) edit(g *gocui.Gui, v *gocui.View) error {
return sb.editLabels(g, snap)
}
+ if sb.selected == "" {
+ return nil
+ }
+
op, err := snap.SearchTimelineItem(git.Hash(sb.selected))
if err != nil {
return err