Update readme and examples
Moved the PollEvents call outside of the for loop
This commit is contained in:
@@ -42,8 +42,9 @@ func main() {
|
||||
|
||||
ui.Render(p0, p1, p2, p3)
|
||||
|
||||
uiEvents := ui.PollEvents()
|
||||
for {
|
||||
e := <-ui.PollEvent()
|
||||
e := <-uiEvents
|
||||
switch e.ID {
|
||||
case "q", "<C-c>":
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user