# HG changeset patch # User Ludovic Chabant # Date 1542053535 28800 # Node ID a798f7ad11c5e6f8141575879c9cbf41caa10438 # Parent 34bee0477b511de72cb46a17a9c2d42cb31815f2 Fix bug for when `wildignore` is empty. diff -r 34bee0477b51 -r a798f7ad11c5 autoload/gutentags/ctags.vim --- a/autoload/gutentags/ctags.vim Mon Nov 12 00:07:27 2018 -0800 +++ b/autoload/gutentags/ctags.vim Mon Nov 12 12:12:15 2018 -0800 @@ -150,7 +150,9 @@ endif if g:gutentags_ctags_exclude_wildignore call s:generate_wildignore_options() - let l:cmd += ['-x', shellescape('@'.s:wildignores_options_path, 1)] + if !empty(s:wildignores_options_path) + let l:cmd += ['-x', shellescape('@'.s:wildignores_options_path, 1)] + endif endif for exc in g:gutentags_ctags_exclude let l:cmd += ['-x', '"' . exc . '"']