diff autoload/gutentags.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 e61d20280c6c
children 74a71a5499c9
line wrap: on
line diff
--- a/autoload/gutentags.vim	Sat Oct 26 01:48:21 2019 -0700
+++ b/autoload/gutentags.vim	Sat Oct 26 00:40:18 2019 -0700
@@ -349,6 +349,11 @@
     endfor
 endfunction
 
+" Set a variable on exit so that we don't complain when a job gets killed.
+function! gutentags#on_vim_leave_pre() abort
+    let g:__gutentags_vim_is_leaving = 1
+endfunction
+
 " }}}
 
 "  Job Management {{{