mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +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,
|
||||
\ 'result': ''
|
||||
\ }
|
||||
function! s:NodeHandler.on_exit(job_id, data, event)
|
||||
let bin_dir = join(self.stdout, '')
|
||||
function! s:NodeHandler.on_exit(job_id, data, event) abort
|
||||
let bin_dir = join(get(self, 'stdout', []), '')
|
||||
let entry_point = bin_dir . self.entry_point
|
||||
let self.result = filereadable(entry_point) ? entry_point : ''
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user