File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -295,9 +295,9 @@ local function update()
295
295
vim .inspect (data )
296
296
)
297
297
local lines = {}
298
- for _ , line in ipairs (data ) do
299
- if string.len (vim .trim (line )) > 0 then
300
- table.insert (lines , line )
298
+ for _ , d in ipairs (data ) do
299
+ if type ( d ) == " string" and string .len (vim .trim (d )) > 0 then
300
+ table.insert (lines , d )
301
301
end
302
302
end
303
303
if # lines > 0 then
@@ -323,6 +323,7 @@ local function update()
323
323
logger .debug (" update command:%s" , vim .inspect (cmd ))
324
324
local jobid = vim .fn .jobstart (cmd , {
325
325
cwd = spec .full_pack_path ,
326
+ detach = true ,
326
327
stdout_buffered = true ,
327
328
stderr_buffered = true ,
328
329
on_stdout = _on_output ,
@@ -336,18 +337,16 @@ local function update()
336
337
logger .debug (" install command:%s" , vim .inspect (cmd ))
337
338
local jobid = vim .fn .jobstart (cmd , {
338
339
cwd = home_dir ,
340
+ detach = true ,
339
341
stdout_buffered = true ,
340
342
stderr_buffered = true ,
341
343
on_stdout = _on_output ,
342
344
on_stderr = _on_output ,
343
345
on_exit = _on_exit ,
344
346
})
345
- logger .debug (" installing %s" , vim .inspect (handle ))
346
347
table.insert (jobs , jobid )
347
348
end
348
349
end
349
- vim .fn .jobwait (jobs )
350
- logger .close_file_mode_w ()
351
350
end
352
351
353
352
local M = { setup = setup , update = update }
You can’t perform that action at this time.
0 commit comments