From be46ee5988d698a352dc79f985bf9a993cabd5db Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Tue, 1 Apr 2014 00:53:18 +1300 Subject: [PATCH] Don't remove fileinfo on BufUnload If 'hidden' is not set then BufUnload is called every time a buffer would get hidden, removing the fileinfo. This causes unnecessary ctags processing of files. --- autoload/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index d9ad0c5..56e4d80 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -984,7 +984,7 @@ function! s:CreateAutocommands() abort " was changed by an external command; see commit 17d199f autocmd BufReadPost,BufEnter,CursorHold,FileType * call \ s:AutoUpdate(fnamemodify(expand(''), ':p'), 0) - autocmd BufDelete,BufUnload,BufWipeout * call + autocmd BufDelete,BufWipeout * call \ s:known_files.rm(fnamemodify(expand(''), ':p')) autocmd QuickFixCmdPre * let s:tagbar_qf_active = 1