Skip to content

Commit

Permalink
Revert "fix: Incorrect file copied message (nvim-telescope#37)"
Browse files Browse the repository at this point in the history
This reverts commit 7500d63.
  • Loading branch information
miguelmoraperea committed Dec 31, 2021
1 parent e76cdf3 commit 0abdb5d
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions lua/telescope/_extensions/file_browser/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -295,23 +295,12 @@ fb_actions.copy_file = function(prompt_bufnr)
end
end
if destination ~= "" then -- vim.fn.input may return "" on cancellation
local res = file:copy {
file:copy {
destination = destination,
recursive = true,
parents = true,
}

for key, value in pairs(res) do
if key.filename == destination then
local res_msg
if res[key] then
res_msg = string.format("\n%s has been copied!", filename)
else
res_msg = string.format("\n%s has not been copied", filename)
end
a.nvim_echo({ { res_msg } }, false, {})
end
end
print(string.format("\n%s has been copied!", filename))
end
end

Expand Down

0 comments on commit 0abdb5d

Please sign in to comment.