diff options
author | Ingo Karkat <swdev@ingo-karkat.de> | 2012-10-22 12:28:12 +0200 |
---|---|---|
committer | Ingo Karkat <swdev@ingo-karkat.de> | 2012-10-22 12:28:12 +0200 |
commit | 61b7bca82f9b9901c959b844e15f31cd3587cd48 (patch) | |
tree | 0959570f4e7e87daec097bf60959424966ea9b92 /autoload | |
parent | 44b04871f812418ac0fe7b38e59222de118d07cb (diff) | |
download | vim-easytags-61b7bca82f9b9901c959b844e15f31cd3587cd48.tar.gz |
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.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/xolox/easytags.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |