aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorblukat29 <yunjong@kaist.ac.kr>2014-08-24 21:44:50 +0900
committerblukat29 <yunjong@kaist.ac.kr>2014-08-24 22:07:49 +0900
commit2d6a2ba16ee9777ac8c13a25210bf159444770fe (patch)
tree381dafe8da18008225bf8d4273f2d43d98be8c89 /autoload
parent364cfcc514f1cd3386221aaa79bf9f12b85b6574 (diff)
downloadvim-easytags-2d6a2ba16ee9777ac8c13a25210bf159444770fe.tar.gz
Add g:easytags_suppress_report option
Diffstat (limited to 'autoload')
-rw-r--r--autoload/xolox/easytags.vim14
1 files changed, 9 insertions, 5 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index 5a67991..c528533 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -192,7 +192,9 @@ function! xolox#easytags#update(silent, filter_tags, filenames) " {{{2
if async
call xolox#misc#async#call({'function': 'xolox#easytags#update#with_vim', 'arguments': [params], 'callback': 'xolox#easytags#async_callback'})
else
- call s:report_results(xolox#easytags#update#with_vim(params), 0)
+ if !(exists('g:easytags_suppress_report') && g:easytags_suppress_report)
+ call s:report_results(xolox#easytags#update#with_vim(params), 0)
+ endif
" When :UpdateTags was executed manually we'll refresh the dynamic
" syntax highlighting so that new tags are immediately visible.
if !a:silent && xolox#misc#option#get('easytags_auto_highlight', 1)
@@ -500,10 +502,12 @@ function! xolox#easytags#syntax_groups_to_ignore() " {{{2
endfunction
function! xolox#easytags#async_callback(response) " {{{2
- if has_key(a:response, 'result')
- call s:report_results(a:response['result'], 1)
- else
- call xolox#misc#msg#warn("easytags.vim %s: Asynchronous tags file update failed! (%s at %s)", g:xolox#easytags#version, a:response['exception'], a:response['throwpoint'])
+ if !(exists('g:easytags_suppress_report') && g:easytags_suppress_report)
+ if has_key(a:response, 'result')
+ call s:report_results(a:response['result'], 1)
+ else
+ call xolox#misc#msg#warn("easytags.vim %s: Asynchronous tags file update failed! (%s at %s)", g:xolox#easytags#version, a:response['exception'], a:response['throwpoint'])
+ endif
endif
endfunction