mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 11:02:41 +03:00
bump gocui
This commit is contained in:
22
vendor/github.com/gdamore/tcell/v2/tscreen.go
generated
vendored
22
vendor/github.com/gdamore/tcell/v2/tscreen.go
generated
vendored
@@ -638,7 +638,7 @@ func (t *tScreen) drawCell(x, y int) int {
|
||||
t.TPuts(ti.TGoto(x-1, y))
|
||||
t.TPuts(ti.InsertChar)
|
||||
t.cy = y
|
||||
t.cx = x-1
|
||||
t.cx = x - 1
|
||||
t.cells.SetDirty(x-1, y, true)
|
||||
_ = t.drawCell(x-1, y)
|
||||
t.TPuts(t.ti.TGoto(0, 0))
|
||||
@@ -941,6 +941,26 @@ func (t *tScreen) nColors() int {
|
||||
return t.ti.Colors
|
||||
}
|
||||
|
||||
func (t *tScreen) ChannelEvents(ch chan<- Event, quit <-chan struct{}) {
|
||||
defer close(ch)
|
||||
for {
|
||||
select {
|
||||
case <-quit:
|
||||
return
|
||||
case <-t.quit:
|
||||
return
|
||||
case ev := <-t.evch:
|
||||
select {
|
||||
case <-quit:
|
||||
return
|
||||
case <-t.quit:
|
||||
return
|
||||
case ch <- ev:
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (t *tScreen) PollEvent() Event {
|
||||
select {
|
||||
case <-t.quit:
|
||||
|
Reference in New Issue
Block a user