1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-04 10:34:55 +02:00

attempt at fixing bad lazyloading

This commit is contained in:
Jesse Duffield 2020-08-23 11:53:05 +10:00
parent 55e6366529
commit 9ca0073cd7

View File

@ -75,7 +75,10 @@ func (gui *Gui) layout(g *gocui.Gui) error {
if !ok { if !ok {
// view not specified in dimensions object: so create the view and hide it // 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 { if err != nil {
return view, err return view, err
} }