glob instead expand
This commit is contained in:
parent
9147f84f85
commit
617ccb62ec
@ -45,7 +45,7 @@ endf
|
|||||||
func! s:has_doc(rtp)
|
func! s:has_doc(rtp)
|
||||||
return isdirectory(a:rtp.'/doc')
|
return isdirectory(a:rtp.'/doc')
|
||||||
\ && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags'))
|
\ && (!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
|
endf
|
||||||
|
|
||||||
func! s:helptags(rtp)
|
func! s:helptags(rtp)
|
||||||
|
Loading…
Reference in New Issue
Block a user