mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-04 22:31:32 +08:00
Fix #1800 - Enable non-blocking writes where available
This commit is contained in:
@@ -249,6 +249,11 @@ function! ale#job#Start(command, options) abort
|
||||
let l:job_options.exit_cb = function('s:VimExitCallback')
|
||||
endif
|
||||
|
||||
" Use non-blocking writes for Vim versions that support the option.
|
||||
if has('patch-8.1.350')
|
||||
let l:job_options.noblock = 1
|
||||
endif
|
||||
|
||||
" Vim 8 will read the stdin from the file's buffer.
|
||||
let l:job_info.job = job_start(a:command, l:job_options)
|
||||
let l:job_id = ale#job#ParseVim8ProcessID(string(l:job_info.job))
|
||||
|
||||
Reference in New Issue
Block a user