mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 17:50:15 +09:00
Synchronize screen
This commit is contained in:
@@ -144,8 +144,9 @@ func main() {
|
||||
go func() {
|
||||
events = make(chan tcell.Event)
|
||||
for {
|
||||
// TODO: fix race condition with screen.Screen = nil
|
||||
screen.Lock()
|
||||
events <- screen.Screen.PollEvent()
|
||||
screen.Unlock()
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user