Skip to content

Commit

Permalink
tree: fix trash for selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jun 3, 2024
1 parent a8b82b9 commit ddecf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nxvim/plugins/neo-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ local config = {
inputs.confirm(msg, function(confirmed)
if not confirmed then return end
for _, node in ipairs(selected_nodes) do
vim.fn.system({ "trash", path })
vim.fn.system({ "trash", node.path })
end
require("neo-tree.sources.manager").refresh(state.name)
end)
Expand Down

0 comments on commit ddecf7c

Please sign in to comment.