Restore original jobstart invocation.

This reverts 16e69e6 and 103acc7 from #322.  These changes turned out to
stop the plugin working with zsh and neovim.

Fixes #324.
This commit is contained in:
Andy Stewart
2016-04-22 20:39:35 +01:00
parent d282c33789
commit 5ed00d1bd3

View File

@@ -129,8 +129,7 @@ function! gitgutter#diff#run_diff(realtime, preserve_full_diff)
" the `stdout` event is not fired on the job handler. Therefore we keep " the `stdout` event is not fired on the job handler. Therefore we keep
" track of the jobs ourselves so we can spot empty diffs. " track of the jobs ourselves so we can spot empty diffs.
let job_cmd = &shell . ' -c ' . cmd let job_id = jobstart([&shell, '-c', cmd], {
let job_id = jobstart(job_cmd, {
\ 'on_stdout': function('gitgutter#handle_diff_job'), \ 'on_stdout': function('gitgutter#handle_diff_job'),
\ 'on_stderr': function('gitgutter#handle_diff_job'), \ 'on_stderr': function('gitgutter#handle_diff_job'),
\ 'on_exit': function('gitgutter#handle_diff_job') \ 'on_exit': function('gitgutter#handle_diff_job')