From ff686e6d5b8cf65d321d9c3522a467ed51fdd80b Mon Sep 17 00:00:00 2001 From: ludovicm67 Date: Wed, 10 Apr 2019 23:53:10 +0200 Subject: termui: fix bug when trying to edit without selection --- termui/show_bug.go | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit