Skip to content

Commit 6ccaa90

Browse files
committed
fix(#2733): escape trash path
1 parent 308f2fc commit 6ccaa90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/actions/fs/trash.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function M.remove(node)
4242
-- trashes a path (file or folder)
4343
local function trash_path(on_exit)
4444
local need_sync_wait = utils.is_windows
45-
local job = vim.fn.jobstart(M.config.trash.cmd .. ' "' .. node.absolute_path .. '"', {
45+
local job = vim.fn.jobstart(M.config.trash.cmd .. ' ' .. vim.fn.fnameescape(node.absolute_path), {
4646
detach = not need_sync_wait,
4747
on_exit = on_exit,
4848
on_stderr = on_stderr,

0 commit comments

Comments
 (0)