comparison autoload/gutentags/ctags.vim @ 230:a798f7ad11c5

Fix bug for when `wildignore` is empty.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 12 Nov 2018 12:12:15 -0800
parents f2fd7d5835d9
children 740cd9065423
comparison
equal deleted inserted replaced
229:34bee0477b51 230:a798f7ad11c5
148 \a:proj_dir, l:proj_options_file) 148 \a:proj_dir, l:proj_options_file)
149 let l:cmd += ['-o', '"' . l:proj_options_file . '"'] 149 let l:cmd += ['-o', '"' . l:proj_options_file . '"']
150 endif 150 endif
151 if g:gutentags_ctags_exclude_wildignore 151 if g:gutentags_ctags_exclude_wildignore
152 call s:generate_wildignore_options() 152 call s:generate_wildignore_options()
153 let l:cmd += ['-x', shellescape('@'.s:wildignores_options_path, 1)] 153 if !empty(s:wildignores_options_path)
154 let l:cmd += ['-x', shellescape('@'.s:wildignores_options_path, 1)]
155 endif
154 endif 156 endif
155 for exc in g:gutentags_ctags_exclude 157 for exc in g:gutentags_ctags_exclude
156 let l:cmd += ['-x', '"' . exc . '"'] 158 let l:cmd += ['-x', '"' . exc . '"']
157 endfor 159 endfor
158 if g:gutentags_pause_after_update 160 if g:gutentags_pause_after_update