From 61b7bca82f9b9901c959b844e15f31cd3587cd48 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Mon, 22 Oct 2012 12:28:12 +0200 Subject: Do not highlight tags on :UpdateTags when it is configured off. I turn off highlighting of tags (:let g:easytags_auto_highlight = 0), because I usually have very large tags databases. When I manually trigger an update via :UpdateTags, the highlighting is processed, though, resulting in the long delay or "regexp too long" error. The :UpdateTags command should honor the configuration setting. --- autoload/xolox/easytags.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload/xolox') diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim index 2088f48..d937eff 100644 --- a/autoload/xolox/easytags.vim +++ b/autoload/xolox/easytags.vim @@ -120,7 +120,7 @@ function! xolox#easytags#update(silent, filter_tags, filenames) " {{{2 endif " When :UpdateTags was executed manually we'll refresh the dynamic " syntax highlighting so that new tags are immediately visible. - if !a:silent + if !a:silent && xolox#misc#option#get('easytags_auto_highlight', 1) HighlightTags endif return 1 -- cgit v1.2.3