Skip to content

Commit

Permalink
chore: replace deprecated table.move
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Feb 28, 2024
1 parent 7a2557e commit bc2410d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/fzf-lua/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,10 @@ function M.tbl_isempty(T)
end

function M.tbl_extend(t1, t2)
---@diagnostic disable-next-line: deprecated
return table.move(t2, 1, #t2, #t1 + 1, t1)
for _, v in ipairs(t2) do
table.insert(t1, v)
end
return t1
end

-- Get map value from string key
Expand Down

0 comments on commit bc2410d

Please sign in to comment.