aboutsummaryrefslogtreecommitdiffstats
path: root/termui/bug_table.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-09 14:55:34 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-09 14:55:34 +0200
commit34eea1f43c0c7f386b375441d8c3a15d9d3b7c99 (patch)
tree8c45b7c8fecf1e03e9d4f5b1aef8d6fe10ac9d98 /termui/bug_table.go
parentde76b6fa1528d476b5be91785f75f8c6d224c92e (diff)
downloadgit-bug-34eea1f43c0c7f386b375441d8c3a15d9d3b7c99.tar.gz
termui: reset the scroll between show bug window
Diffstat (limited to 'termui/bug_table.go')
-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 354570af..1432d943 100644
--- a/termui/bug_table.go
+++ b/termui/bug_table.go
@@ -380,6 +380,6 @@ 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.bug = bt.bugs[bt.pageCursor+y]
+ ui.showBug.SetBug(bt.bugs[bt.pageCursor+y])
return ui.activateWindow(ui.showBug)
}