Small change to the filesystem library to allow using handle:seek() with no arguments to get the current position

This commit is contained in:
2026-05-03 11:46:31 +03:00
parent 26a61c6e6c
commit 568b4d0b2c
+1 -1
View File
@@ -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