# HG changeset patch # User Ludovic Chabant # Date 1406160274 25200 # Node ID 478638833c3bef0625de95c123e795eb3ea01018 # Parent b853ad0e7afd9f3ce2a91f3e205614665dabce5d Fix Win32 update script, add option to pause it. diff -r b853ad0e7afd -r 478638833c3b plat/win32/update_tags.cmd --- 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 diff -r b853ad0e7afd -r 478638833c3b plugin/autotags.vim --- 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"'