Fix renaming PollEvent to PollEvents (Closes #203)

This commit is contained in:
Caleb Bassi 2018-12-28 13:03:25 -08:00 committed by GitHub
parent 3461d4a2e8
commit 2cfe9f65b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ func main() {
defer ui.Close() defer ui.Close()
for { for {
e := <-ui.PollEvent() e := <-ui.PollEvents()
fmt.Printf("%v", e) fmt.Printf("%v", e)
switch e.ID { switch e.ID {
case "q", "<C-c>": case "q", "<C-c>":