mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 03:45:42 +00:00
provider/nodejs: handle missing stdout
ref https://github.com/neovim/neovim/issues/9001#issuecomment-434802234
This commit is contained in:
@@ -26,8 +26,8 @@ let s:NodeHandler = {
|
|||||||
\ 'stdout_buffered': v:true,
|
\ 'stdout_buffered': v:true,
|
||||||
\ 'result': ''
|
\ 'result': ''
|
||||||
\ }
|
\ }
|
||||||
function! s:NodeHandler.on_exit(job_id, data, event)
|
function! s:NodeHandler.on_exit(job_id, data, event) abort
|
||||||
let bin_dir = join(self.stdout, '')
|
let bin_dir = join(get(self, 'stdout', []), '')
|
||||||
let entry_point = bin_dir . self.entry_point
|
let entry_point = bin_dir . self.entry_point
|
||||||
let self.result = filereadable(entry_point) ? entry_point : ''
|
let self.result = filereadable(entry_point) ? entry_point : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user