termui: fix the instructions being written on in show bug

This commit is contained in:
Michael Muré 2018-08-09 16:48:23 +02:00
parent a0d509bcdd
commit f7ef5cdb3a
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -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
}