From 9c272b97bce2ed85dba00d45036e849725c66c52 Mon Sep 17 00:00:00 2001 From: Michael <42828375+sarmong@users.noreply.github.com> Date: Mon, 11 Apr 2022 13:28:51 +0300 Subject: [PATCH] fix: trash filenames with spaces (#1156) --- lua/nvim-tree/actions/trash.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/actions/trash.lua b/lua/nvim-tree/actions/trash.lua index dc334a69..14289ec0 100644 --- a/lua/nvim-tree/actions/trash.lua +++ b/lua/nvim-tree/actions/trash.lua @@ -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, })