File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,11 @@ local function create_callback(method, url)
115
115
end
116
116
117
117
local function format_curl_cmd (res )
118
- local cmd = ' curl'
118
+ local cmd = " curl"
119
119
120
120
for _ , value in pairs (res ) do
121
- if string.sub (value , 1 , 1 ) == ' - ' then
122
- cmd = cmd .. ' ' .. value
121
+ if string.sub (value , 1 , 1 ) == " - " then
122
+ cmd = cmd .. " " .. value
123
123
else
124
124
cmd = cmd .. " '" .. value .. " '"
125
125
end
@@ -130,7 +130,6 @@ local function format_curl_cmd(res)
130
130
return cmd
131
131
end
132
132
133
-
134
133
-- curl_cmd runs curl with the passed options, gets or creates a new buffer
135
134
-- and then the results are printed to the recently obtained/created buffer
136
135
-- @param opts curl arguments
@@ -139,7 +138,7 @@ M.curl_cmd = function(opts)
139
138
local res = curl [opts .method ](opts )
140
139
local curl_cmd = format_curl_cmd (res )
141
140
142
- if config .get (' yank_dry_run' ) then
141
+ if config .get (" yank_dry_run" ) then
143
142
vim .cmd (' let @+="' .. curl_cmd .. ' "' )
144
143
end
145
144
You can’t perform that action at this time.
0 commit comments