From 3e63bdb7c4046a28ee85428a76ac2e0186651387 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 13 Apr 2011 10:30:12 -0400 Subject: [PATCH] More accurate writability check for helptags --- autoload/pathogen.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim index e10fac9..330cd9f 100644 --- a/autoload/pathogen.vim +++ b/autoload/pathogen.vim @@ -133,7 +133,7 @@ let s:done_bundles = '' " Invoke :helptags on all non-$VIM doc directories in runtimepath. function! pathogen#helptags() " {{{1 for dir in pathogen#split(&rtp) - if dir[0 : strlen($VIM)-1] !=# $VIM && isdirectory(dir.'/doc') && !empty(glob(dir.'/doc/*')) && (!filereadable(dir.'/doc/tags') || filewritable(dir.'/doc/tags')) + if dir[0 : strlen($VIMRUNTIME)-1] !=# $VIMRUNTIME && filewritable(dir.'/doc') == 2 && !empty(glob(dir.'/doc/*')) && (!filereadable(dir.'/doc/tags') || filewritable(dir.'/doc/tags')) helptags `=dir.'/doc'` endif endfor