Skip to content

Commit 968e87e

Browse files
sejaegertpope
authored andcommitted
Skip empty directories in pathogen#helptags()
1 parent 52b0918 commit 968e87e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/pathogen.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ let s:done_bundles = ''
133133
" Invoke :helptags on all non-$VIM doc directories in runtimepath.
134134
function! pathogen#helptags() " {{{1
135135
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'))
136+
if dir[0 : strlen($VIM)-1] !=# $VIM && isdirectory(dir.'/doc') && !empty(glob(dir.'/doc/*')) && (!filereadable(dir.'/doc/tags') || filewritable(dir.'/doc/tags'))
137137
helptags `=dir.'/doc'`
138138
endif
139139
endfor

0 commit comments

Comments
 (0)