Skip to content

Commit

Permalink
fix: change table.move to just a for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgriffing committed May 21, 2021
1 parent 94c92bb commit 06916f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/nvim-biscuits/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ end

utils.merge_arrays = function(a, b)
local result = {unpack(a)}
table.move(b, 1, #b, #result + 1, result)
for i = 1,#b do
result[#a + i] = b[i]
end
return result
end

Expand Down

0 comments on commit 06916f5

Please sign in to comment.