From 6af16c1ccdb43d94877dc5986c8d6a8cdf5103b3 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 17 Aug 2018 12:10:28 +0200 Subject: termui: fix out of bounds when opening a bug on non-first page --- termui/bug_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termui/bug_table.go b/termui/bug_table.go index cd5ee1f6..78778ec3 100644 --- a/termui/bug_table.go +++ b/termui/bug_table.go @@ -396,7 +396,7 @@ func (bt *bugTable) newBug(g *gocui.Gui, v *gocui.View) error { func (bt *bugTable) openBug(g *gocui.Gui, v *gocui.View) error { _, y := v.Cursor() - ui.showBug.SetBug(bt.bugs[bt.pageCursor+y]) + ui.showBug.SetBug(bt.bugs[y]) return ui.activateWindow(ui.showBug) } -- cgit