Revisión | 7246692f51a344ef7fac4f173e9e37a0cce90436 (tree) |
---|---|
Tiempo | 2023-05-04 17:21:09 |
Autor | badcoff33 <none@none> |
Commiter | badcoff33 |
fixed Rg with backslash
@@ -4,6 +4,7 @@ g:run_dict = [] | ||
4 | 4 | g:run_popup_line_min = 2 |
5 | 5 | g:run_popup_line_max = 6 |
6 | 6 | g:run_popup_line = g:run_popup_line_min |
7 | +g:run_be_verbose = false | |
7 | 8 | |
8 | 9 | def g:Winopts(): dict<any> |
9 | 10 | var d = { pos: "botright", |
@@ -206,6 +207,12 @@ export def RunStart(dict: dict<any>): job | ||
206 | 207 | return null_job |
207 | 208 | endif |
208 | 209 | |
210 | + if g:run_be_verbose == true | |
211 | + for k in keys(dict) | |
212 | + echo "run dict:" k "=" dict[k] | |
213 | + endfor | |
214 | + endif | |
215 | + | |
209 | 216 | ConditionalWriteAll(dict) |
210 | 217 | |
211 | 218 | # act like :make |
@@ -227,7 +234,7 @@ def StartBackground(dict: dict<any>): job | ||
227 | 234 | |
228 | 235 | job_opts.cwd = has_key(dict, "cwd") ? dict.cwd : getcwd() |
229 | 236 | job_opts.err_cb = function("run#BackgroundErrorCb") |
230 | - v_job = job_start("cmd /C " .. escape(dict.cmd, '\'), job_opts) | |
237 | + v_job = job_start("cmd /C " .. dict.cmd, job_opts) | |
231 | 238 | |
232 | 239 | return v_job |
233 | 240 | enddef |
@@ -267,7 +274,7 @@ def StartBuffered(dict: dict<any>): job | ||
267 | 274 | g:Winopts()) |
268 | 275 | endif |
269 | 276 | |
270 | - run_dict_entry.job = job_start("cmd /C " .. escape(dict.cmd, '\'), job_opts) | |
277 | + run_dict_entry.job = job_start("cmd /C " .. dict.cmd, job_opts) | |
271 | 278 | run_dict_entry.channel = split(string(job_getchannel(run_dict_entry.job)), " ")[1] |
272 | 279 | |
273 | 280 | add(g:run_dict, run_dict_entry) |