mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 10:35:38 -07:00
Rename function from 'is_exec_helptags()' to 'do_need_exec_helptags()'.
This commit is contained in:
parent
6014409b59
commit
d3d4f5603f
4
plug.vim
4
plug.vim
@ -600,7 +600,7 @@ function! s:update(force, names)
|
||||
call s:update_impl(1, a:force, a:names)
|
||||
endfunction
|
||||
|
||||
function! s:is_exec_helptags(docdir)
|
||||
function! s:do_need_exec_helptags(docdir)
|
||||
let exts = s:uniq(sort(map(s:glob(a:docdir, '*.{txt,??x}'), 'v:val[-3:]')))
|
||||
for ext in exts
|
||||
let tagname = 'tags' . (ext == 'txt' ? '' : '-' . ext[:1])
|
||||
@ -617,7 +617,7 @@ function! plug#helptags()
|
||||
endif
|
||||
for spec in values(g:plugs)
|
||||
let docd = join([s:rtp(spec), 'doc'], '/')
|
||||
if isdirectory(docd) && s:is_exec_helptags(docd)
|
||||
if isdirectory(docd) && s:do_need_exec_helptags(docd)
|
||||
silent! execute 'helptags' s:esc(docd)
|
||||
endif
|
||||
endfor
|
||||
|
Loading…
Reference in New Issue
Block a user