summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheat/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/cheat/init.lua')
-rw-r--r--plugins/cheat/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index da1544a58d7..4c97c321d6b 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -537,7 +537,7 @@ function cheat.startplugin()
input:seq_poll_start("switch")
local time = os.clock()
local clearmsg = true
- while (not input:seq_poll()) and (os.clock() < time + 1) do
+ while (not input:seq_poll()) and (input.seq_poll_modified() or (os.clock() < time + 1)) do
if input:seq_poll_modified() then
if not input:seq_poll_valid() then
manager:machine():popmessage(_("Invalid sequence entered"))