mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 10:35:38 -07:00
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.
This commit is contained in:
parent
4c9ebe9c31
commit
19b12e2216
2
plug.vim
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user