diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 11:53:05 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 9ca0073cd7680d2417d4bb0a38a7b02df3dfd651 (patch) | |
tree | 1cdb746215397e82fbe7cbca5f080483a9dfe611 | |
parent | 55e6366529325ab3d2f9485ce8bb339edeb13b9a (diff) |
attempt at fixing bad lazyloading
-rw-r--r-- | pkg/gui/layout.go | 5 |
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 } |