changeset 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 e9d605753a8a
files plat/win32/update_tags.cmd plugin/autotags.vim
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plat/win32/update_tags.cmd	Tue Jul 22 10:40:03 2014 -0700
+++ b/plat/win32/update_tags.cmd	Wed Jul 23 17:04:34 2014 -0700
@@ -6,6 +6,7 @@
 rem ==========================================
 
 set CTAGS_EXE=ctags
+set CTAGS_ARGS=
 set TAGS_FILE=tags
 set UPDATED_SOURCE=
 set PAUSE_BEFORE_EXIT=0
@@ -18,6 +19,11 @@
     shift
     goto :LoopParseArgs
 )
+if [%1]==[-x] (
+    set CTAGS_ARGS=%CTAGS_ARGS% --exclude=%2
+    shift
+    goto :LoopParseArgs
+)
 if [%1]==[-t] (
     set TAGS_FILE=%~2
     shift
--- 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"'