Skip to content

Commit

Permalink
fix: yank curl command which includes double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
purefun authored and NTBBloodbath committed Dec 17, 2021
1 parent aa9cd8c commit 1d76b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rest-nvim/curl/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ M.curl_cmd = function(opts)
local curl_cmd = format_curl_cmd(res)

if config.get("yank_dry_run") then
vim.cmd('let @+="' .. curl_cmd .. '"')
vim.cmd("let @+=" .. string.format("%q", curl_cmd))
end

log.debug("[rest.nvim] Request preview:\n" .. curl_cmd)
Expand Down

0 comments on commit 1d76b3a

Please sign in to comment.