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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user