From 9bbd0098c576495b05dbc4d1615eb50bb93946c8 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Wed, 6 Feb 2013 21:21:18 +1300 Subject: [PATCH] Don't update when in previewwindow, closes #112 --- autoload/tagbar.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 8756cf2..32ce3e8 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -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'