From ee04a646d31f7f1322a3dbf68a3cba814876f5c1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 22 Jun 2014 21:49:51 +0900 Subject: [PATCH] Fix: dependent plugins not loaded after initial installaion --- plug.vim | 4 ++++ test/workflow.vader | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plug.vim b/plug.vim index 2c5a642..c877c7c 100644 --- a/plug.vim +++ b/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 diff --git a/test/workflow.vader b/test/workflow.vader index 249b8c0..937526f 100644 --- a/test/workflow.vader +++ b/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):