Skip to content

Commit

Permalink
frontend/termbox: Fix for flaky TestCreateFrontend.
Browse files Browse the repository at this point in the history
The only reason it worked before was because tbfe.Show was called on
the console view (and it thus was added to the layout map).
  • Loading branch information
quarnster committed Mar 6, 2015
1 parent 2c8b2d8 commit 443fcc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/termbox/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,7 @@ func (t *tbfe) handleResize(height, width int, init bool) {
if init {
t.layout[t.currentView] = layout{0, 0, 0, 0, Region{}, 0}
t.window_layout = layout{0, 0, 0, 0, Region{}, 0}
if *showConsole {
t.layout[t.console] = layout{0, 0, 0, 0, Region{}, 0}
}
t.layout[t.console] = layout{0, 0, 0, 0, Region{}, 0}
}

t.window_layout.height = height
Expand Down

0 comments on commit 443fcc5

Please sign in to comment.