aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/xolox
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2014-06-29 19:54:08 +0200
committerPeter Odding <peter@peterodding.com>2014-06-29 19:54:08 +0200
commit6c7a66349ec7c1c92cb5f77afd44330189815d46 (patch)
tree6a1e555ba068be98f861793801e6e2b439c53226 /autoload/xolox
parent55d7e31784744151b63b3022ec604f45f3a221d1 (diff)
downloadvim-easytags-6c7a66349ec7c1c92cb5f77afd44330189815d46.tar.gz
Disable automatic tags file updates during :vimgrep
This change is related to pull request #83 however that pull request wasn't merged here (and won't be merged at all) because it was based on the old/dead `async-cleanup' feature branch (see pull request #49 on GitHub) instead of the new `async-take-two' feature branch (see pull request #84 on GitHub). This change set implements the equivalent on the new feature branch (without introducing another option).
Diffstat (limited to 'autoload/xolox')
-rw-r--r--autoload/xolox/easytags.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index 4de7b1f..9524570 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -408,6 +408,18 @@ function! xolox#easytags#async_callback(response) " {{{2
endif
endfunction
+function! xolox#easytags#disable_automatic_updates() " {{{2
+ let s:easytags_auto_update_save = xolox#misc#option#get('easytags_auto_update', 1)
+ let g:easytags_auto_update = 0
+endfunction
+
+function! xolox#easytags#restore_automatic_updates() " {{{2
+ if exists('s:easytags_auto_update_save')
+ let g:easytags_auto_update = s:easytags_auto_update_save
+ unlet s:easytags_auto_update_save
+ else
+endfunction
+
" Public API for definition of file type specific dynamic syntax highlighting. {{{1
function! xolox#easytags#define_tagkind(object) " {{{2