Mercurial > vim-gutentags
comparison autoload/gutentags/ctags.vim @ 170:0e7ffc799cc5
Escape reserved Vim patterns in wildignore entries.
author | Thaer <thaer.khawaja@gmail.com> |
---|---|
date | Sun, 05 Feb 2017 22:32:56 -0800 |
parents | 34c57ad6eb45 |
children | 18df731b1563 |
comparison
equal
deleted
inserted
replaced
167:34c57ad6eb45 | 170:0e7ffc799cc5 |
---|---|
143 \a:proj_dir, l:proj_options_file) | 143 \a:proj_dir, l:proj_options_file) |
144 let l:cmd .= ' -o "' . l:proj_options_file . '"' | 144 let l:cmd .= ' -o "' . l:proj_options_file . '"' |
145 endif | 145 endif |
146 if g:gutentags_ctags_exclude_wildignore | 146 if g:gutentags_ctags_exclude_wildignore |
147 for ign in split(&wildignore, ',') | 147 for ign in split(&wildignore, ',') |
148 let l:cmd .= ' -x ' . '"' . ign . '"' | 148 let l:cmd .= ' -x ' . shellescape(ign, 1) |
149 endfor | 149 endfor |
150 endif | 150 endif |
151 for exc in g:gutentags_ctags_exclude | 151 for exc in g:gutentags_ctags_exclude |
152 let l:cmd .= ' -x ' . '"' . exc . '"' | 152 let l:cmd .= ' -x ' . '"' . exc . '"' |
153 endfor | 153 endfor |