1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 11:10:29 +00:00

Merge pull request #299 from Wilma456/termbug

Fix Bug with term.setCursorPos
This commit is contained in:
Daniel Ratcliffe 2017-06-03 21:31:56 +01:00 committed by GitHub
commit 5e3eb2c6a7

View File

@ -243,6 +243,9 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
end
function window.setCursorPos( x, y )
if type( x ) ~= "number" or type( y ) ~= "number" then
error( "Expected number, number", 2 )
end
nCursorX = math.floor( x )
nCursorY = math.floor( y )
if bVisible then