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