Skip to content

Commit

Permalink
fix(snacks): use filtered items instead of all
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 15, 2025
1 parent 4d36b89 commit 2423cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/sources/snacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function M.open(picker, opts)
opts.type = #selected == 0 and "all" or "selected"
end
if opts.type == "all" then
vim.list_extend(sitems, picker.finder.items)
vim.list_extend(sitems, picker:items())
else
vim.list_extend(sitems, selected)
end
Expand Down

0 comments on commit 2423cd2

Please sign in to comment.