Hi.

When the job exit immediately, channel->ch_to_be_closed will be TRUE before 
channel_read even though the output buffer is filled enough to read. For 
example, following command doesn't output result of the job.

---------
function! Disp(ch, msg)
    echom a:msg
endfunction

function! PerlCheck()
    let s:job = job_start("perl -cw ".expand("%"), { "callback" : 
function("Disp") })
endfunction
---------

Below is a patch to fix this. This change doesn't break any tests.

https://gist.github.com/130f41a825ec72ccddb55b189d11558f

Thanks.

- mattn

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui