We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c65cd commit 470d0e8Copy full SHA for 470d0e8
1 file changed
lua/plenary/path.lua
@@ -859,6 +859,11 @@ function Path:readbyterange(offset, length)
859
860
if offset < 0 then
861
offset = stat.size + offset
862
+ -- Windows fails if offset is < 0 even though offset is defined as signed
863
+ -- http://docs.libuv.org/en/v1.x/fs.html#c.uv_fs_read
864
+ if offset < 0 then
865
+ offset = 0
866
+ end
867
end
868
869
local data = ""
0 commit comments