Permalink
Browse files

Don't try to run :helptags on directories with no text files

  • Loading branch information...
1 parent 2ecf944 commit 7962a18c29b8debbdf1f3decdd71205f8a44106d @tomtom committed Jan 22, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 autoload/tplugin.vim
View
@@ -446,7 +446,9 @@ function! s:MakeHelpTags(roots, master_dir) "{{{3
if is_tree
let helpdirs = split(glob(TPluginFileJoin(root, '*', 'doc')), '\n')
for doc in helpdirs
- if isdirectory(doc)
+ " TLogVAR doc
+ " TLogDBG empty(glob(TPluginFileJoin(doc, '*.*')))
+ if isdirectory(doc) && !empty(glob(TPluginFileJoin(doc, '*.*')))
let tags = TPluginFileJoin(doc, 'tags')
if !filereadable(tags) || s:ShouldMakeHelptags(doc)
" echom "DBG MakeHelpTags" 'helptags '. TPluginFnameEscape(doc)

0 comments on commit 7962a18

Please sign in to comment.