fix: trash filenames with spaces (#1156)

This commit is contained in:
Michael
2022-04-11 13:28:51 +03:00
committed by GitHub
parent fc925d814a
commit 9c272b97bc

View File

@@ -47,7 +47,7 @@ function M.fn(node)
-- trashes a path (file or folder)
local function trash_path(on_exit)
vim.fn.jobstart(M.config.trash.cmd .. " " .. node.absolute_path, {
vim.fn.jobstart(M.config.trash.cmd .. ' "' .. node.absolute_path .. '"', {
detach = true,
on_exit = on_exit,
})