1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 11:02:41 +03:00

bump gocui

This commit is contained in:
Jesse Duffield
2021-09-27 19:51:44 +10:00
parent ab0117c416
commit c8e9d1b4fc
112 changed files with 4773 additions and 4538 deletions

View File

@@ -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: