comparison autoload/gutentags/cscope.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 ac312dc3c111
children 6030953258fe
comparison
equal deleted inserted replaced
253:ec292bfbd633 254:52be4cf89810
80 call add(s:added_dbs, l:dbfile_path) 80 call add(s:added_dbs, l:dbfile_path)
81 silent! execute 'cs add ' . fnameescape(l:dbfile_path) 81 silent! execute 'cs add ' . fnameescape(l:dbfile_path)
82 else 82 else
83 silent! execute 'cs reset' 83 silent! execute 'cs reset'
84 endif 84 endif
85 else 85 elseif !g:__gutentags_vim_is_leaving
86 call gutentags#warning( 86 call gutentags#warning(
87 \"cscope job failed, returned: ". 87 \"cscope job failed, returned: ".
88 \string(a:exit_val)) 88 \string(a:exit_val))
89 endif 89 endif
90 endfunction 90 endfunction