1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:10:04 +08:00

fix(runner): fix async_run function

close https://github.com/SpaceVim/SpaceVim/issues/4625
This commit is contained in:
wsdjeg 2022-04-06 10:59:34 +08:00
parent 80d909ca49
commit f31f1bfc97

View File

@ -185,7 +185,7 @@ function! s:async_run(runner, ...) abort
call s:BUFFER.buf_set_lines(s:code_runner_bufnr, s:runner_lines , -1, 0, ['[Running] ' . join(cmd) . (usestdin ? ' STDIN' : ''), '', repeat('-', 20)])
let s:runner_lines += 3
let s:start_time = reltime()
if executable(exe)
if !empty(exe) && executable(exe[0])
let s:runner_jobid = s:JOB.start(cmd,{
\ 'on_stdout' : function('s:on_stdout'),
\ 'on_stderr' : function('s:on_stderr'),