From 19b12e221694650723102dcb5d5704936a598b83 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 5 Aug 2014 01:43:42 +0900 Subject: [PATCH] Make sure update/install after PlugUpgrade work By not assuming `frozen` property exists. I tried to fix it with s:upgrade_specs, but it has no effect if the old version of vim-plug doesn't know about it. --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 3e344c3..c28a752 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, '!v:val.frozen') : + let todo = empty(args) ? filter(managed, '!get(v:val, "frozen", 0)') : \ filter(managed, 'index(args, v:key) >= 0') if empty(todo)