mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Do not assume that frozen
key exists
To avoid possible error after PlugUpgrade
This commit is contained in:
parent
9afa356fb3
commit
e4671eaf9e
2
plug.vim
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user