fix line substring

This commit is contained in:
BuckarooBanzay
2020-06-16 08:44:06 +02:00
parent e5f11d68c0
commit 4d189f01e5

View File

@ -32,8 +32,8 @@ if event.type == "interrupt" then
return
end
local char = line[mem.pos]
if not char then
local char = line:sub(mem.pos, 1)
if char == "" then
-- next line
mem.line = mem.line + 1
mem.pos = 1