Skip to content

Commit 81eb8d5

Browse files
authored
fix(#2733): escape trash path (#2735)
* fix(#2733): escape trash path * fix(#2733): escape trash path * fix(#2733): escape trash path
1 parent d8d3a15 commit 81eb8d5

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.shellescape(node.absolute_path), {
4646
detach = not need_sync_wait,
4747
on_exit = on_exit,
4848
on_stderr = on_stderr,

0 commit comments

Comments
 (0)