aboutsummaryrefslogtreecommitdiffstats
path: root/termui/bug_table.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-17 12:37:58 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-17 12:37:58 +0200
commite482a37776524b56d602e0067b254ea48307eea2 (patch)
tree3aa47b267cb2b0bf800de2e8b7415a6d4d51449e /termui/bug_table.go
parent6af16c1ccdb43d94877dc5986c8d6a8cdf5103b3 (diff)
downloadgit-bug-e482a37776524b56d602e0067b254ea48307eea2.tar.gz
termiu: show the bug after creation
Diffstat (limited to 'termui/bug_table.go')
-rw-r--r--termui/bug_table.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go
index 78778ec3..169dd7c1 100644
--- a/termui/bug_table.go
+++ b/termui/bug_table.go
@@ -196,16 +196,16 @@ func (bt *bugTable) keybindings(g *gocui.Gui) error {
}
func (bt *bugTable) disable(g *gocui.Gui) error {
- if err := g.DeleteView(bugTableView); err != nil {
+ if err := g.DeleteView(bugTableView); err != nil && err != gocui.ErrUnknownView {
return err
}
- if err := g.DeleteView(bugTableHeaderView); err != nil {
+ if err := g.DeleteView(bugTableHeaderView); err != nil && err != gocui.ErrUnknownView {
return err
}
- if err := g.DeleteView(bugTableFooterView); err != nil {
+ if err := g.DeleteView(bugTableFooterView); err != nil && err != gocui.ErrUnknownView {
return err
}
- if err := g.DeleteView(bugTableInstructionView); err != nil {
+ if err := g.DeleteView(bugTableInstructionView); err != nil && err != gocui.ErrUnknownView {
return err
}
return nil