1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Fix bug with empty filetype

This commit is contained in:
Jan Larres
2011-05-07 04:17:26 +12:00
parent eb10c1d05c
commit 33d5a5e84f

View File

@@ -2476,7 +2476,7 @@ 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'
if tagbarwinnr == -1 || &filetype == 'tagbar' || &filetype == ''
return
endif