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