aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-09 16:48:23 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-09 16:48:23 +0200
commitf7ef5cdb3af2b0f958e54a6c24167d3b430dca1c (patch)
treee61ba86ed8f0d09b650a7a01b9023a835d59b70d
parenta0d509bcddf5ae0115c8679bbd81425696552b86 (diff)
downloadgit-bug-f7ef5cdb3af2b0f958e54a6c24167d3b430dca1c.tar.gz
termui: fix the instructions being written on in show bug
-rw-r--r--termui/show_bug.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/termui/show_bug.go b/termui/show_bug.go
index 4f5373d6..585ee148 100644
--- a/termui/show_bug.go
+++ b/termui/show_bug.go
@@ -86,6 +86,11 @@ func (sb *showBug) layout(g *gocui.Gui) error {
fmt.Fprintf(v, "[q] Save and return [c] Comment [t] Change title [↓,j] Down [↑,k] Up")
}
+ _, err = g.SetViewOnTop(showBugInstructionView)
+ if err != nil {
+ return err
+ }
+
_, err = g.SetCurrentView(showBugView)
return err
}