comparison plugin/gutentags.vim @ 35:c9dfccf3c2f7

Fix #7 zsh will try to expand glob patterns (e.g., *.o) if it is not quoted
author Yang Zhang <yangzhang@live.com>
date Mon, 10 Nov 2014 23:03:44 +0800
parents 217be2e61ed4
children 186b65facdb1
comparison
equal deleted inserted replaced
34:a3ef2402ca09 35:c9dfccf3c2f7
289 let l:proj_dir = fnamemodify(a:1, ':h') 289 let l:proj_dir = fnamemodify(a:1, ':h')
290 else 290 else
291 let l:tags_file = b:gutentags_file 291 let l:tags_file = b:gutentags_file
292 let l:proj_dir = b:gutentags_root 292 let l:proj_dir = b:gutentags_root
293 endif 293 endif
294 294
295 " Check that there's not already an update in progress. 295 " Check that there's not already an update in progress.
296 let l:lock_file = l:tags_file . '.lock' 296 let l:lock_file = l:tags_file . '.lock'
297 if filereadable(l:lock_file) 297 if filereadable(l:lock_file)
298 if a:queue_mode == 1 298 if a:queue_mode == 1
299 let l:idx = index(s:update_queue, l:tags_file) 299 let l:idx = index(s:update_queue, l:tags_file)
325 if a:write_mode == 0 && filereadable(l:tags_file) 325 if a:write_mode == 0 && filereadable(l:tags_file)
326 let l:full_path = expand('%:p') 326 let l:full_path = expand('%:p')
327 let l:cmd .= ' -s "' . l:full_path . '"' 327 let l:cmd .= ' -s "' . l:full_path . '"'
328 endif 328 endif
329 for ign in split(&wildignore, ',') 329 for ign in split(&wildignore, ',')
330 let l:cmd .= ' -x ' . ign 330 let l:cmd .= ' -x ' . '"' . ign . '"'
331 endfor 331 endfor
332 for exc in g:gutentags_exclude 332 for exc in g:gutentags_exclude
333 let l:cmd .= ' -x ' . exc 333 let l:cmd .= ' -x ' . '"' . exc . '"'
334 endfor 334 endfor
335 if g:gutentags_pause_after_update 335 if g:gutentags_pause_after_update
336 let l:cmd .= ' -p' 336 let l:cmd .= ' -p'
337 endif 337 endif
338 if len(g:gutentags_options_file) 338 if len(g:gutentags_options_file)
358 if !g:gutentags_trace 358 if !g:gutentags_trace
359 silent execute l:cmd 359 silent execute l:cmd
360 else 360 else
361 execute l:cmd 361 execute l:cmd
362 endif 362 endif
363 363
364 " Flag this tags file as being in progress 364 " Flag this tags file as being in progress
365 let l:full_tags_file = fnamemodify(l:tags_file, ':p') 365 let l:full_tags_file = fnamemodify(l:tags_file, ':p')
366 let s:maybe_in_progress[l:full_tags_file] = localtime() 366 let s:maybe_in_progress[l:full_tags_file] = localtime()
367 else 367 else
368 call s:trace("(fake... not actually running)") 368 call s:trace("(fake... not actually running)")