From 568b4d0b2c431f500f30848cf8051f8a3bd7f229 Mon Sep 17 00:00:00 2001 From: WahPlus Date: Sun, 3 May 2026 11:46:31 +0300 Subject: [PATCH] Small change to the filesystem library to allow using handle:seek() with no arguments to get the current position --- lib/filesystem.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filesystem.lua b/lib/filesystem.lua index 615da82..9d5e522 100644 --- a/lib/filesystem.lua +++ b/lib/filesystem.lua @@ -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