We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52b0918 commit 968e87eCopy full SHA for 968e87e
1 file changed
autoload/pathogen.vim
@@ -133,7 +133,7 @@ let s:done_bundles = ''
133
" Invoke :helptags on all non-$VIM doc directories in runtimepath.
134
function! pathogen#helptags() " {{{1
135
for dir in pathogen#split(&rtp)
136
- if dir[0 : strlen($VIM)-1] !=# $VIM && isdirectory(dir.'/doc') && (!filereadable(dir.'/doc/tags') || filewritable(dir.'/doc/tags'))
+ if dir[0 : strlen($VIM)-1] !=# $VIM && isdirectory(dir.'/doc') && !empty(glob(dir.'/doc/*')) && (!filereadable(dir.'/doc/tags') || filewritable(dir.'/doc/tags'))
137
helptags `=dir.'/doc'`
138
endif
139
endfor
0 commit comments