From 33d5a5e84f6a0180d99e94af2d1043e1e2849577 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Sat, 7 May 2011 04:17:26 +1200 Subject: [PATCH] Fix bug with empty filetype --- plugin/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index a7e5e7e..426ffbb 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -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