aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-17 12:10:28 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-17 12:10:28 +0200
commit6af16c1ccdb43d94877dc5986c8d6a8cdf5103b3 (patch)
tree5a1e0e977d59b5cb874eb00ef2a0443348d3cec7
parent1e43a6a7e35b32a95b0c533d8b2d31f242e72463 (diff)
downloadgit-bug-6af16c1ccdb43d94877dc5986c8d6a8cdf5103b3.tar.gz
termui: fix out of bounds when opening a bug on non-first page
-rw-r--r--termui/bug_table.go2
1 files changed, 1 insertions, 1 deletions
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)
}