#3499 edit fix: floor cursor positions passed to setCursor. note that this could be done in tty but trying to reduce impact of this change

This commit is contained in:
payonel 2022-06-08 06:57:57 -07:00
parent fb73d37474
commit 3df002f4af

View File

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