Mercurial > vim-gutentags
diff autoload/gutentags/cscope.vim @ 267:6030953258fe
On Windows, kill ongoing jobs before leaving so we can clean-up temp files
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 12 May 2022 09:20:21 -0700 |
parents | 52be4cf89810 |
children |
line wrap: on
line diff
--- a/autoload/gutentags/cscope.vim Fri Feb 25 22:12:42 2022 +0800 +++ b/autoload/gutentags/cscope.vim Thu May 12 09:20:21 2022 -0700 @@ -87,6 +87,12 @@ \"cscope job failed, returned: ". \string(a:exit_val)) endif + if has('win32') && g:__gutentags_vim_is_leaving + " The process got interrupted because Vim is quitting. + " Remove the db file on Windows because there's no `trap` + " statement in the update script. + try | call delete(l:dbfile_path) | endtry + endif endfunction " }}}