Fix vim72 test failed
This commit is contained in:
parent
03592a8b4c
commit
2a1fd8281a
6
plug.vim
6
plug.vim
|
@ -601,16 +601,14 @@ function! s:update(force, names)
|
|||
endfunction
|
||||
|
||||
function! s:is_exec_helptags(docdir)
|
||||
let result = v:false
|
||||
let exts = uniq(sort(map(s:glob(a:docdir, '*.{txt,??x}'), 'v:val[-3:]')))
|
||||
for ext in exts
|
||||
let tagname = 'tags' . (ext == 'txt' ? '' : '-' . ext[:1])
|
||||
if !filereadable(a:docdir .'/'. tagname) || empty(s:system('cd ' . s:shellesc(a:docdir) . ' && git ls-files ' . tagname))
|
||||
let result = v:true
|
||||
break
|
||||
return 1
|
||||
endif
|
||||
endfor
|
||||
return result
|
||||
return 0
|
||||
endfunc
|
||||
|
||||
function! plug#helptags()
|
||||
|
|
Loading…
Reference in New Issue
Block a user