mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-09 07:15:11 -04:00
#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:
parent
fb73d37474
commit
3df002f4af
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user