mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Merge 858ff1806e into 7e7aadc207
This commit is contained in:
commit
7c1d3c854f
1 changed files with 12 additions and 1 deletions
13
vendor/github.com/jesseduffield/gocui/gui.go
generated
vendored
13
vendor/github.com/jesseduffield/gocui/gui.go
generated
vendored
|
|
@ -1546,7 +1546,18 @@ func (g *Gui) Resume() error {
|
||||||
|
|
||||||
g.suspended = false
|
g.suspended = false
|
||||||
|
|
||||||
return g.screen.Resume()
|
if err := g.screen.Resume(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resume() re-engages the terminal but leaves tcell's internal
|
||||||
|
// "last drawn" cell cache stale. Without Sync(), the next redraw
|
||||||
|
// diffs against that stale cache, finds nothing changed, and
|
||||||
|
// writes nothing — leaving the screen blank. Sync() invalidates
|
||||||
|
// the cache so the next Show() forces a full repaint.
|
||||||
|
g.screen.Sync()
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// matchView returns if the keybinding matches the current view (and the view's context)
|
// matchView returns if the keybinding matches the current view (and the view's context)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue