From 8289477d1855224a35b83c1fefc58da54b234d7a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 5 Aug 2014 01:46:05 +0900 Subject: [PATCH] Revert "Make sure update/install after PlugUpgrade work" This reverts commit 19b12e221694650723102dcb5d5704936a598b83. No luck. The user still have to reload .vimrc anyway. Let's just make it clear that a restart can be required after PlugUpgrade. --- README.md | 16 ++++++++-------- plug.vim | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6723350..68aaa59 100644 --- a/README.md +++ b/README.md @@ -60,14 +60,14 @@ Reload .vimrc and `:PlugInstall` to install plugins. ### Commands -| Command | Description | -| --------------------------------- | ------------------------------------------------------------------ | -| PlugInstall [name ...] [#threads] | Install plugins | -| PlugUpdate [name ...] [#threads] | Install or update plugins | -| PlugClean[!] | Remove unused directories (bang version will clean without prompt) | -| PlugUpgrade | Upgrade vim-plug itself | -| PlugStatus | Check the status of plugins | -| PlugDiff | See the updated changes from the previous PlugUpdate | +| Command | Description | +| --------------------------------- | ------------------------------------------------------------------- | +| PlugInstall [name ...] [#threads] | Install plugins | +| PlugUpdate [name ...] [#threads] | Install or update plugins | +| PlugClean[!] | Remove unused directories (bang version will clean without prompt) | +| PlugUpgrade | Upgrade vim-plug itself. You may need to restart Vim after upgrade. | +| PlugStatus | Check the status of plugins | +| PlugDiff | See the updated changes from the previous PlugUpdate | ### `Plug` options diff --git a/plug.vim b/plug.vim index c28a752..3e344c3 100644 --- a/plug.vim +++ b/plug.vim @@ -544,7 +544,7 @@ function! s:update_impl(pull, force, args) abort \ remove(args, -1) : get(g:, 'plug_threads', 16) let managed = filter(copy(g:plugs), 's:is_managed(v:key)') - let todo = empty(args) ? filter(managed, '!get(v:val, "frozen", 0)') : + let todo = empty(args) ? filter(managed, '!v:val.frozen') : \ filter(managed, 'index(args, v:key) >= 0') if empty(todo)