fix: trash command not working
parent
0a56f2a801
commit
4a09d023c8
|
|
@ -164,12 +164,12 @@ function M.trashFile(opts)
|
||||||
if vim.fn.has('linux') == 1 then
|
if vim.fn.has('linux') == 1 then
|
||||||
local xdg_data = os.getenv("XDG_DATA_HOME")
|
local xdg_data = os.getenv("XDG_DATA_HOME")
|
||||||
if xdg_data then
|
if xdg_data then
|
||||||
trash = xdg_data .. "/Trash"
|
trash = xdg_data .. "/Trash/"
|
||||||
else
|
else
|
||||||
trash = os.getenv("HOME") .. "/.local/share/Trash"
|
trash = os.getenv("HOME") .. "/.local/share/Trash/"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
trash = os.getenv("HOME") .. "/.Trash"
|
trash = os.getenv("HOME") .. "/.Trash/"
|
||||||
end
|
end
|
||||||
|
|
||||||
if opts and opts.trashLocation then
|
if opts and opts.trashLocation then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue