mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 19:40:27 +01:00
Fix bug with subtypes not being properly recognized
This commit is contained in:
@@ -2480,14 +2480,14 @@ function! s:AutoUpdate(fname)
|
||||
return
|
||||
endif
|
||||
|
||||
" Don't do anything if the file isn't supported
|
||||
if !s:IsValidFile(a:fname, &filetype)
|
||||
return
|
||||
endif
|
||||
|
||||
" Only consider the main filetype in cases like 'python.django'
|
||||
let ftype = split(&filetype, '\.')[0]
|
||||
|
||||
" Don't do anything if the file isn't supported
|
||||
if !s:IsValidFile(a:fname, ftype)
|
||||
return
|
||||
endif
|
||||
|
||||
" Process the file if it's unknown or the information is outdated
|
||||
" Also test for entries that exist but are empty, which will be the case
|
||||
" if there was an error during the ctags execution
|
||||
|
||||
Reference in New Issue
Block a user