Selaa lähdekoodia

Ignore inconsistencies between g:plugs and g:plugs_order

https://github.com/junegunn/vim-plug/issues/469#issuecomment-226965736
Junegunn Choi 9 vuotta sitten
vanhempi
sitoutus
460fbe82e0
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      plug.vim

+ 3 - 0
plug.vim

@@ -196,6 +196,9 @@ function! plug#end()
 
   filetype off
   for name in g:plugs_order
+    if !has_key(g:plugs, name)
+      continue
+    endif
     let plug = g:plugs[name]
     if get(s:loaded, name, 0) || !has_key(plug, 'on') && !has_key(plug, 'for')
       let s:loaded[name] = 1