1
0
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:
Jan Larres
2011-05-07 03:46:56 +12:00
parent 1916c55b7c
commit eb10c1d05c

View File

@@ -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