diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-17 12:10:28 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-17 12:10:28 +0200 |
commit | 6af16c1ccdb43d94877dc5986c8d6a8cdf5103b3 (patch) | |
tree | 5a1e0e977d59b5cb874eb00ef2a0443348d3cec7 | |
parent | 1e43a6a7e35b32a95b0c533d8b2d31f242e72463 (diff) | |
download | git-bug-6af16c1ccdb43d94877dc5986c8d6a8cdf5103b3.tar.gz |
termui: fix out of bounds when opening a bug on non-first page
-rw-r--r-- | termui/bug_table.go | 2 |
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) } |