From 6c959d2c2577da0c7007a1b655656199fed75893 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Mon, 13 Jun 2011 01:13:07 +0200 Subject: Automatically run :HighlightTags after using :UpdateTags --- autoload/xolox/easytags.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'autoload/xolox') 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 -" Last Change: May 23, 2011 +" Last Change: June 13, 2011 " URL: http://peterodding.com/code/vim/easytags/ let s:script = expand(':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) -- cgit v1.2.3