1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 03:50:26 +01:00

Small cleanup

This commit is contained in:
Jan Larres
2011-05-07 18:04:01 +12:00
parent 8b539ad91c
commit 804aa3b170

View File

@@ -2481,12 +2481,12 @@ endfunction
function! s:AutoUpdate(fname)
" Don't do anything if tagbar is not open or if we're in the tagbar window
let tagbarwinnr = bufwinnr('__Tagbar__')
if tagbarwinnr == -1 || &filetype == 'tagbar' || &filetype == ''
if tagbarwinnr == -1 || &filetype == 'tagbar'
return
endif
" Only consider the main filetype in cases like 'python.django'
let ftype = split(&filetype, '\.')[0]
let ftype = get(split(&filetype, '\.'), 0, '')
" Don't do anything if the file isn't supported
if !s:IsValidFile(a:fname, ftype)