Small change to the filesystem library to allow using handle:seek() with no arguments to get the current position
This commit is contained in:
+1
-1
@@ -350,7 +350,7 @@ function filesystem.open(path, mode, buffered) -- opens a file and returns its h
|
||||
end
|
||||
end
|
||||
function properHandle.seek(self, whence, offset)
|
||||
checkArg(2, whence, "string", "number")
|
||||
checkArg(2, whence, "string", "number", "nil")
|
||||
checkArg(3, offset, "number", "nil")
|
||||
if not offset then
|
||||
offset = 0
|
||||
|
||||
Reference in New Issue
Block a user