mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-06 23:46:13 +02:00
restore contents on resume from subprocess
The proper fix will come out of this PR but it's not yet merged: https://github.com/gdamore/tcell/pull/439/files In the meantime I'm just going to directly edit this from my vendor directory. If it ends up stretching a while I'll fork tcell properly and use the fork.
This commit is contained in:
parent
8eb802d3a0
commit
1ae8523098
6
vendor/github.com/gdamore/tcell/v2/tscreen.go
generated
vendored
6
vendor/github.com/gdamore/tcell/v2/tscreen.go
generated
vendored
@ -168,11 +168,6 @@ func (t *tScreen) Init() error {
|
|||||||
t.colors[Color(i)|ColorValid] = Color(i) | ColorValid
|
t.colors[Color(i)|ColorValid] = Color(i) | ColorValid
|
||||||
}
|
}
|
||||||
|
|
||||||
t.TPuts(ti.EnterCA)
|
|
||||||
t.TPuts(ti.HideCursor)
|
|
||||||
t.TPuts(ti.EnableAcs)
|
|
||||||
t.TPuts(ti.Clear)
|
|
||||||
|
|
||||||
t.quit = make(chan struct{})
|
t.quit = make(chan struct{})
|
||||||
|
|
||||||
t.Lock()
|
t.Lock()
|
||||||
@ -1580,7 +1575,6 @@ func (t *tScreen) HasKey(k Key) bool {
|
|||||||
|
|
||||||
func (t *tScreen) Resize(int, int, int, int) {}
|
func (t *tScreen) Resize(int, int, int, int) {}
|
||||||
|
|
||||||
|
|
||||||
func (t *tScreen) Suspend() error {
|
func (t *tScreen) Suspend() error {
|
||||||
t.disengage()
|
t.disengage()
|
||||||
return nil
|
return nil
|
||||||
|
6
vendor/github.com/gdamore/tcell/v2/tscreen_unix.go
generated
vendored
6
vendor/github.com/gdamore/tcell/v2/tscreen_unix.go
generated
vendored
@ -47,6 +47,12 @@ func (t *tScreen) engage() error {
|
|||||||
t.enablePasting(t.pasteEnabled)
|
t.enablePasting(t.pasteEnabled)
|
||||||
signal.Notify(t.sigwinch, syscall.SIGWINCH)
|
signal.Notify(t.sigwinch, syscall.SIGWINCH)
|
||||||
|
|
||||||
|
ti := t.ti
|
||||||
|
t.TPuts(ti.EnterCA)
|
||||||
|
t.TPuts(ti.HideCursor)
|
||||||
|
t.TPuts(ti.EnableAcs)
|
||||||
|
t.TPuts(ti.Clear)
|
||||||
|
|
||||||
t.wg.Add(2)
|
t.wg.Add(2)
|
||||||
go t.inputLoop(stopQ)
|
go t.inputLoop(stopQ)
|
||||||
go t.mainLoop(stopQ)
|
go t.mainLoop(stopQ)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user