Skip to content

Commit

Permalink
tree: use plain path for trash command to fix command for paths with …
Browse files Browse the repository at this point in the history
…spaces and parens
  • Loading branch information
ttytm committed May 7, 2024
1 parent 4344eed commit f2cebd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/nxvim/plugins/neo-tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ local config = {
local msg = "Are you sure you want to trash " .. path
inputs.confirm(msg, function(confirmed)
if not confirmed then return end

vim.fn.system({ "trash", vim.fn.fnameescape(path) })
vim.fn.system({ "trash", path })
require("neo-tree.sources.manager").refresh(state.name)
end)
end,
Expand Down

0 comments on commit f2cebd9

Please sign in to comment.