[Helptags] Ignore wildignore setting (#567)

If `tags` is set in the `wildignore` option, `:Helptags` command would
always return an empty list.
This commit is contained in:
Pascal Lalancette
2018-01-21 05:52:23 -05:00
committed by Junegunn Choi
parent c0a5fee707
commit 17d24ae31d

View File

@@ -976,7 +976,7 @@ function! fzf#vim#helptags(...)
if !executable('grep') || !executable('perl')
return s:warn('Helptags command requires grep and perl')
endif
let sorted = sort(split(globpath(&runtimepath, 'doc/tags'), '\n'))
let sorted = sort(split(globpath(&runtimepath, 'doc/tags', 1), '\n'))
let tags = exists('*uniq') ? uniq(sorted) : fzf#vim#_uniq(sorted)
if exists('s:helptags_script')