glob instead expand

This commit is contained in:
gmarik 2011-03-19 16:59:50 -05:00
parent 9147f84f85
commit 617ccb62ec

View File

@ -45,7 +45,7 @@ endf
func! s:has_doc(rtp)
return isdirectory(a:rtp.'/doc')
\ && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags'))
\ && (len(expand(a:rtp.'/doc/*.txt')) > 0 || len(expand(a:rtp.'/doc/*.??x')) > 0)
\ && (len(glob(a:rtp.'/doc/*.txt')) > 0 || len(glob(a:rtp.'/doc/*.??x')) > 0)
endf
func! s:helptags(rtp)