aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2014-09-14 11:07:50 +0200
committerPeter Odding <peter@peterodding.com>2014-09-14 11:07:50 +0200
commitb4d5dd6e12c8b158d8f0598ba98a45650b6fc956 (patch)
tree4cbf4fc6d627935594e289676e55182da6b79d96 /autoload
parent364cfcc514f1cd3386221aaa79bf9f12b85b6574 (diff)
parent2d6a2ba16ee9777ac8c13a25210bf159444770fe (diff)
downloadvim-easytags-b4d5dd6e12c8b158d8f0598ba98a45650b6fc956.tar.gz
Merge pull request #95: Add g:easytags_suppress_report option
Diffstat (limited to 'autoload')
-rw-r--r--autoload/xolox/easytags.vim30
1 files changed, 16 insertions, 14 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index 5a67991..23f6288 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -1,9 +1,9 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: August 8, 2014
+" Last Change: September 14, 2014
" URL: http://peterodding.com/code/vim/easytags/
-let g:xolox#easytags#version = '3.6.6'
+let g:xolox#easytags#version = '3.6.7'
let g:xolox#easytags#default_pattern_prefix = '\C\<'
let g:xolox#easytags#default_pattern_suffix = '\>'
@@ -552,18 +552,20 @@ endfunction
" Miscellaneous script-local functions. {{{1
function! s:report_results(response, async) " {{{2
- let actions = []
- if a:response['num_updated'] > 0
- call add(actions, printf('updated %i tags', a:response['num_updated']))
- endif
- if a:response['num_filtered'] > 0
- call add(actions, printf('filtered %i invalid tags', a:response['num_filtered']))
- endif
- if !empty(actions)
- let function = a:async ? 'xolox#misc#msg#debug' : 'xolox#misc#msg#info'
- let actions_string = xolox#misc#str#ucfirst(join(actions, ' and '))
- let command_type = a:async ? 'asynchronously' : 'synchronously'
- call call(function, ["easytags.vim %s: %s in %s (%s).", g:xolox#easytags#version, actions_string, a:response['elapsed_time'], command_type])
+ if !xolox#misc#option#get('easytags_suppress_report', 0)
+ let actions = []
+ if a:response['num_updated'] > 0
+ call add(actions, printf('updated %i tags', a:response['num_updated']))
+ endif
+ if a:response['num_filtered'] > 0
+ call add(actions, printf('filtered %i invalid tags', a:response['num_filtered']))
+ endif
+ if !empty(actions)
+ let function = a:async ? 'xolox#misc#msg#debug' : 'xolox#misc#msg#info'
+ let actions_string = xolox#misc#str#ucfirst(join(actions, ' and '))
+ let command_type = a:async ? 'asynchronously' : 'synchronously'
+ call call(function, ["easytags.vim %s: %s in %s (%s).", g:xolox#easytags#version, actions_string, a:response['elapsed_time'], command_type])
+ endif
endif
endfunction