aboutsummaryrefslogtreecommitdiffstats
path: root/termui/bug_table.go
diff options
context:
space:
mode:
Diffstat (limited to 'termui/bug_table.go')
-rw-r--r--termui/bug_table.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go
index 80d5ebcb..2913ac80 100644
--- a/termui/bug_table.go
+++ b/termui/bug_table.go
@@ -437,6 +437,10 @@ func (bt *bugTable) newBug(g *gocui.Gui, v *gocui.View) error {
}
func (bt *bugTable) openBug(g *gocui.Gui, v *gocui.View) error {
+ if len(bt.excerpts) == 0 {
+ // There are no open bugs, just do nothing
+ return nil
+ }
id := bt.excerpts[bt.selectCursor].Id
b, err := bt.repo.ResolveBug(id)
if err != nil {