Skip to content

Commit

Permalink
Fix bug for when wildignore is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicchabant committed Nov 12, 2018
1 parent 2689e11 commit 713044e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/gutentags/ctags.vim
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ function! gutentags#ctags#generate(proj_dir, tags_file, gen_opts) abort
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 . '"']
Expand Down

2 comments on commit 713044e

@narcolepsy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

@Funges
Copy link

@Funges Funges commented on 713044e Nov 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I installed the new master by "git pull", and checked the code in autoload/gutentags/ctags.vim. BTW, the problem still exists. And then, after I delete the "let g:gutentags_ctags_extra_args += ['--output-format=e-ctags']" in ~/.vimrc, it no longer exists. However i'm not sure whether it will cause some other problems.

Please sign in to comment.