There was an error while loading. Please reload this page.
1 parent 87507f7 commit 0251281Copy full SHA for 0251281
1 file changed
dist/lualib/typescript.lua
@@ -47,7 +47,7 @@ function TS_splice(list, startI, deleteCount, ...)
47
deleteCount = #list - startI
48
end
49
local out = {}
50
- for i = startI, deleteCount do
+ for i = startI + deleteCount, startI, -1 do
51
table.insert(out, table.remove(list, i))
52
53
for _, value in ipairs({...}) do
0 commit comments