Skip to content

Commit 61b7bca

Browse files
committed
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.
1 parent 44b0487 commit 61b7bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/xolox/easytags.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function! xolox#easytags#update(silent, filter_tags, filenames) " {{{2
120120
endif
121121
" When :UpdateTags was executed manually we'll refresh the dynamic
122122
" syntax highlighting so that new tags are immediately visible.
123-
if !a:silent
123+
if !a:silent && xolox#misc#option#get('easytags_auto_highlight', 1)
124124
HighlightTags
125125
endif
126126
return 1

0 commit comments

Comments
 (0)