mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Give up when job id is problematic.
This commit is contained in:
@@ -134,6 +134,9 @@ function! gitgutter#diff#run_diff(realtime, preserve_full_diff)
|
||||
\ 'on_stderr': function('gitgutter#handle_diff_job'),
|
||||
\ 'on_exit': function('gitgutter#handle_diff_job')
|
||||
\ })
|
||||
if job_id < 1
|
||||
throw 'diff failed'
|
||||
endif
|
||||
call gitgutter#utility#pending_job(job_id)
|
||||
return 'async'
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user