comparison autoload/gutentags/ctags.vim @ 254:52be4cf89810

Don't complain when the job gets killed when Vim exits. This happens on Neovim, where the jobs seem to get killed before Vim exits, and so Gutentags has enough time to print a warning.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 26 Oct 2019 00:40:18 -0700
parents ec292bfbd633
children 950647497ae5
comparison
equal deleted inserted replaced
253:ec292bfbd633 254:52be4cf89810
215 endfunction 215 endfunction
216 216
217 function! gutentags#ctags#on_job_exit(job, exit_val) abort 217 function! gutentags#ctags#on_job_exit(job, exit_val) abort
218 call gutentags#remove_job_by_data('ctags', a:job) 218 call gutentags#remove_job_by_data('ctags', a:job)
219 219
220 if a:exit_val != 0 220 if a:exit_val != 0 && !g:__gutentags_vim_is_leaving
221 call gutentags#warning("ctags job failed, returned: ". 221 call gutentags#warning("ctags job failed, returned: ".
222 \string(a:exit_val)) 222 \string(a:exit_val))
223 endif 223 endif
224 endfunction 224 endfunction
225 225