Skip to content

Commit 6c4632c

Browse files
committed
fix(ui_select): do not use deepcopy (closes #2256)
1 parent 71fe5c1 commit 6c4632c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lua/fzf-lua/providers/ui_select.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ M.ui_select = function(items, ui_opts, on_choice)
9393

9494
-- deepcopy register opts so we don't poullute the original tbl ref (#2241)
9595
if type(opts) == "table" then
96-
opts = vim.deepcopy(opts)
96+
opts = utils.tbl_deep_clone(opts)
97+
assert(opts) -- lint nil check
9798
end
9899

99100
opts.fzf_opts = vim.tbl_extend("keep", opts.fzf_opts or {}, {

0 commit comments

Comments
 (0)