File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 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)
115115end
116116
117117local function format_curl_cmd (res )
118- local cmd = ' curl'
118+ local cmd = " curl"
119119
120120 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
123123 else
124124 cmd = cmd .. " '" .. value .. " '"
125125 end
@@ -130,7 +130,6 @@ local function format_curl_cmd(res)
130130 return cmd
131131end
132132
133-
134133-- curl_cmd runs curl with the passed options, gets or creates a new buffer
135134-- and then the results are printed to the recently obtained/created buffer
136135-- @param opts curl arguments
@@ -139,7 +138,7 @@ M.curl_cmd = function(opts)
139138 local res = curl [opts .method ](opts )
140139 local curl_cmd = format_curl_cmd (res )
141140
142- if config .get (' yank_dry_run' ) then
141+ if config .get (" yank_dry_run" ) then
143142 vim .cmd (' let @+="' .. curl_cmd .. ' "' )
144143 end
145144
You can’t perform that action at this time.
0 commit comments