mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Restore original jobstart invocation.
This reverts16e69e6and103acc7from #322. These changes turned out to stop the plugin working with zsh and neovim. Fixes #324.
This commit is contained in:
@@ -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
|
||||
" track of the jobs ourselves so we can spot empty diffs.
|
||||
|
||||
let job_cmd = &shell . ' -c ' . cmd
|
||||
let job_id = jobstart(job_cmd, {
|
||||
let job_id = jobstart([&shell, '-c', cmd], {
|
||||
\ 'on_stdout': function('gitgutter#handle_diff_job'),
|
||||
\ 'on_stderr': function('gitgutter#handle_diff_job'),
|
||||
\ 'on_exit': function('gitgutter#handle_diff_job')
|
||||
|
||||
Reference in New Issue
Block a user