diff options
author | Peter Odding <peter@peterodding.com> | 2011-06-13 01:13:07 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2011-06-13 01:13:07 +0200 |
commit | 6c959d2c2577da0c7007a1b655656199fed75893 (patch) | |
tree | c5c422359df5ec0898bf65c1ad6530c0146f562a /autoload | |
parent | eb7061095fdd9688031e31a71e092ead061778e0 (diff) | |
download | vim-easytags-6c959d2c2577da0c7007a1b655656199fed75893.tar.gz |
Automatically run :HighlightTags after using :UpdateTags
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/xolox/easytags.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim index 4928ef5..df109be 100644 --- a/autoload/xolox/easytags.vim +++ b/autoload/xolox/easytags.vim @@ -1,6 +1,6 @@ " Vim script " Author: Peter Odding <peter@peterodding.com> -" Last Change: May 23, 2011 +" Last Change: June 13, 2011 " URL: http://peterodding.com/code/vim/easytags/ let s:script = expand('<sfile>:p:~') @@ -58,6 +58,11 @@ function! xolox#easytags#update(silent, filter_tags, filenames) " {{{2 call xolox#misc#timer#stop(msg, s:script, num_filtered, starttime) endif endif + " When :UpdateTags was executed manually we'll refresh the dynamic + " syntax highlighting so that new tags are immediately visible. + if !a:silent + HighlightTags + endif return 1 catch call xolox#misc#msg#warn("%s: %s (at %s)", s:script, v:exception, v:throwpoint) |