Skip to content

Commit

Permalink
Do not highlight tags on :UpdateTags when it is configured off.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
inkarkat committed Oct 22, 2012
1 parent 44b0487 commit 61b7bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/xolox/easytags.vim
Expand Up @@ -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
Expand Down

0 comments on commit 61b7bca

Please sign in to comment.