Mercurial > vim-gutentags
diff 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 |
line wrap: on
line diff
--- a/autoload/gutentags/ctags.vim Sat Oct 26 01:48:21 2019 -0700 +++ b/autoload/gutentags/ctags.vim Sat Oct 26 00:40:18 2019 -0700 @@ -217,7 +217,7 @@ function! gutentags#ctags#on_job_exit(job, exit_val) abort call gutentags#remove_job_by_data('ctags', a:job) - if a:exit_val != 0 + if a:exit_val != 0 && !g:__gutentags_vim_is_leaving call gutentags#warning("ctags job failed, returned: ". \string(a:exit_val)) endif