mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
Bump gocui
This commit is contained in:
23
vendor/github.com/jesseduffield/gocui/gui.go
generated
vendored
23
vendor/github.com/jesseduffield/gocui/gui.go
generated
vendored
@ -1166,6 +1166,29 @@ func (g *Gui) flush() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (g *Gui) ForceLayoutAndRedraw() error {
|
||||
return g.flush()
|
||||
}
|
||||
|
||||
// force redrawing one or more views outside of the normal main loop. Useful during longer
|
||||
// operations that block the main thread, to update a spinner in a status view.
|
||||
func (g *Gui) ForceRedrawViews(views ...*View) error {
|
||||
for _, m := range g.managers {
|
||||
if err := m.Layout(g); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
for _, v := range views {
|
||||
if err := v.draw(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Screen.Show()
|
||||
return nil
|
||||
}
|
||||
|
||||
// draw manages the cursor and calls the draw function of a view.
|
||||
func (g *Gui) draw(v *View) error {
|
||||
if g.suspended {
|
||||
|
Reference in New Issue
Block a user