From 9ca0073cd7680d2417d4bb0a38a7b02df3dfd651 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 23 Aug 2020 11:53:05 +1000 Subject: attempt at fixing bad lazyloading --- pkg/gui/layout.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3