summaryrefslogtreecommitdiffstats
path: root/pkg/gui/layout.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/layout.go')
-rw-r--r--pkg/gui/layout.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/gui/layout.go b/pkg/gui/layout.go
index 33310fa6c..9f97bf4fd 100644
--- a/pkg/gui/layout.go
+++ b/pkg/gui/layout.go
@@ -75,7 +75,10 @@ func (gui *Gui) layout(g *gocui.Gui) error {
if !ok {
// view not specified in dimensions object: so create the view and hide it
- view, err := g.SetView(viewName, 0, 0, 0, 0, 0)
+ // making the view take up the whole space in the background in case it needs
+ // to render content as soon as it appears, because lazyloaded content (via a pty task)
+ // cares about the size of the view.
+ view, err := g.SetView(viewName, 0, 0, width, height, 0)
if err != nil {
return view, err
}