Skip to content

Commit

Permalink
fix(backends): Fix plain text backend to work in LuaJIT/Lua 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 31, 2023
1 parent 6461c4d commit d0a2a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outputters/text.lua
Expand Up @@ -59,7 +59,7 @@ function outputter:setCursor (x, y, relative)
outfile:write("")
end
elseif newx > cursorX then
if newx - cursorX > spc then
if newx:tonumber() - cursorX:tonumber() > spc then
outfile:write(" ")
else
outfile:write("")
Expand Down

0 comments on commit d0a2a1e

Please sign in to comment.