diff 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
line wrap: on
line diff
--- 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 . '"']