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:
parent
55e6366529
commit
9ca0073cd7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user