diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-09 14:55:34 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-09 14:55:34 +0200 |
commit | 34eea1f43c0c7f386b375441d8c3a15d9d3b7c99 (patch) | |
tree | 8c45b7c8fecf1e03e9d4f5b1aef8d6fe10ac9d98 | |
parent | de76b6fa1528d476b5be91785f75f8c6d224c92e (diff) | |
download | git-bug-34eea1f43c0c7f386b375441d8c3a15d9d3b7c99.tar.gz |
termui: reset the scroll between show bug window
-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 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) } |