diff plugin/autotags.vim @ 11:478638833c3b

Fix Win32 update script, add option to pause it.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 23 Jul 2014 17:04:34 -0700
parents b853ad0e7afd
children b8f23bf7b20f
line wrap: on
line diff
--- a/plugin/autotags.vim	Tue Jul 22 10:40:03 2014 -0700
+++ b/plugin/autotags.vim	Wed Jul 23 17:04:34 2014 -0700
@@ -28,6 +28,10 @@
     let g:autotags_background_update = 1
 endif
 
+if !exists('g:autotags_pause_after_update')
+    let g:autotags_pause_after_update = 0
+endif
+
 if !exists('g:autotags_enabled')
     let g:autotags_enabled = 1
 endif
@@ -284,6 +288,9 @@
         for exc in g:autotags_exclude
             let l:cmd .= ' -x ' . exc
         endfor
+        if g:autotags_pause_after_update
+            let l:cmd .= ' -p'
+        endif
         if g:autotags_trace
             if has('win32')
                 let l:cmd .= ' -l "' . fnamemodify(l:tags_file, ':t') . '.log"'