From e4671eaf9ea6eaed6362675a6953e322c8bb1115 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 18 Jul 2014 01:27:41 +0900 Subject: [PATCH] Do not assume that `frozen` key exists To avoid possible error after PlugUpgrade --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 7f91ecb..ea5dfee 100644 --- a/plug.vim +++ b/plug.vim @@ -455,7 +455,7 @@ function! s:update_impl(pull, 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)