Permalink
Browse files

fix condition in saveWaitForEvent()

add newline escape sequence.

close #106
  • Loading branch information...
1 parent e0327ed commit cafa86a5bd8cdb9c2af10a520225a48bd047bb76 @houqp houqp committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 keys.lua
View
@@ -262,7 +262,7 @@ function input.saveWaitForEvent(timeout)
local ok, ev = pcall(input.waitForEvent, timeout)
if not ok then
print("got error waiting for events:", ev)
- if ev == "Waiting for input failed: 4" then
+ if ev == "Waiting for input failed: 4\n" then
-- EINTR, we got interrupted. Try and restart
retry = true
else

0 comments on commit cafa86a

Please sign in to comment.