Merge pull request #10 from saccarosium/main

remotes/origin/HEAD
pseudometa 2023-02-06 06:47:33 +01:00 committed by GitHub
commit bca0e46999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -164,12 +164,12 @@ function M.trashFile(opts)
if vim.fn.has('linux') == 1 then
local xdg_data = os.getenv("XDG_DATA_HOME")
if xdg_data then
trash = xdg_data .. "/Trash"
trash = xdg_data .. "/Trash/"
else
trash = os.getenv("HOME") .. "/.local/share/Trash"
trash = os.getenv("HOME") .. "/.local/share/Trash/"
end
else
trash = os.getenv("HOME") .. "/.Trash"
trash = os.getenv("HOME") .. "/.Trash/"
end
if opts and opts.trashLocation then