mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Log fileinfo removal
This commit is contained in:
@@ -984,8 +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('<afile>'), ':p'), 0)
|
||||
autocmd BufDelete,BufWipeout * call
|
||||
\ s:known_files.rm(fnamemodify(expand('<afile>'), ':p'))
|
||||
autocmd BufDelete,BufWipeout * call s:RemoveFileinfo(expand('<afile>'))
|
||||
|
||||
autocmd QuickFixCmdPre * let s:tagbar_qf_active = 1
|
||||
autocmd QuickFixCmdPost * if exists('s:tagbar_qf_active') |
|
||||
@@ -3698,6 +3697,13 @@ function! s:IsValidFile(fname, ftype) abort
|
||||
return 1
|
||||
endfunction
|
||||
|
||||
" s:RemoveFileinfo() {{{2
|
||||
function! s:RemoveFileinfo(file) abort
|
||||
let file = fnamemodify(a:file, ':p')
|
||||
call s:debug('Removing fileinfo for [' . file . ']')
|
||||
call s:known_files.rm(file)
|
||||
endfunction
|
||||
|
||||
" s:SetStatusLine() {{{2
|
||||
function! s:SetStatusLine(current)
|
||||
" Make sure we're actually in the Tagbar window
|
||||
|
||||
Reference in New Issue
Block a user