Skip to content

Commit

Permalink
tree: use plain path for trash command for dirs
Browse files Browse the repository at this point in the history
same as f2cebd9 for single files files
  • Loading branch information
ttytm committed May 25, 2024
1 parent 212bab9 commit 1a056a5
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", vim.fn.fnameescape(node.path) })
vim.fn.system({ "trash", path })
end
require("neo-tree.sources.manager").refresh(state.name)
end)
Expand Down

0 comments on commit 1a056a5

Please sign in to comment.