adjust #3499 fix to work on Lua 5.2

This commit is contained in:
Adrian Siekierka 2022-09-01 22:40:09 +02:00
parent 6f59b11da5
commit a7f93408d7

View File

@ -202,7 +202,7 @@ end
local function setCursor(nbx, nby) local function setCursor(nbx, nby)
local x, y, w, h = getArea() local x, y, w, h = getArea()
nbx, nby = nbx // 1, nby // 1 nbx, nby = math.floor(nbx), math.floor(nby)
nby = math.max(1, math.min(#buffer, nby)) nby = math.max(1, math.min(#buffer, nby))
local ncy = nby - scrollY local ncy = nby - scrollY