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

Don't update when in previewwindow, closes #112

This commit is contained in:
Jan Larres
2013-02-06 21:21:18 +13:00
parent 5816ce0c5a
commit 9bbd0098c5

View File

@@ -3342,6 +3342,11 @@ function! s:IsValidFile(fname, ftype) abort
return 0
endif
if &previewwindow
call s:LogDebugMessage('In preview window')
return 0
endif
if !has_key(s:known_types, a:ftype)
if exists('g:tagbar_type_' . a:ftype)
" Filetype definition must have been specified in an 'ftplugin'