From d3d4f5603f71b6110d55c2d2dab8461e5dc3fb13 Mon Sep 17 00:00:00 2001 From: h_east Date: Wed, 11 Jul 2018 21:54:28 +0900 Subject: [PATCH] Rename function from 'is_exec_helptags()' to 'do_need_exec_helptags()'. --- plug.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug.vim b/plug.vim index 81e2648..66dd784 100644 --- a/plug.vim +++ b/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