Просмотр исходного кода

Fix: dependent plugins not loaded after initial installaion

Junegunn Choi 11 лет назад
Родитель
Сommit
ee04a646d3
2 измененных файлов с 5 добавлено и 5 удалено
  1. 4 0
      plug.vim
  2. 1 5
      test/workflow.vader

+ 4 - 0
plug.vim

@@ -406,11 +406,15 @@ function! s:update_impl(pull, args) abort
   normal! 2G
   redraw
 
+  let len = len(g:plugs)
   if has('ruby') && threads > 1
     call s:update_parallel(a:pull, todo, threads)
   else
     call s:update_serial(a:pull, todo)
   endif
+  if len(g:plugs) > len
+    call plug#end()
+  endif
   call s:finish(a:pull)
 endfunction
 

+ 1 - 5
test/workflow.vader

@@ -328,11 +328,7 @@ Execute (Partial PlugInstall):
   PlugInstall vim-fnr vim-easy-align 1
   q
 
-Execute (TODO Check dependent plugin):
-^ It is a known issue that when a dependent plugin is installed, it is not
-^ immediately added to runtimepath. It only becomes available when
-^ plug#end() is called.
-
+Execute (Check dependent plugin):
   Assert &rtp =~ 'pseudocl', &rtp
 
 Given (Unaligned code):