group related conditions

This commit is contained in:
gmarik 2011-03-18 20:25:11 -05:00
parent 5ce63c7de1
commit d9bdffe74f

View File

@ -36,8 +36,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') \ && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags')))
\ || filewritable(a:rtp.'/doc/tags')))
endf endf
func! s:helptags(rtp) func! s:helptags(rtp)