Explorar o código

Ignore inconsistencies between g:plugs and g:plugs_order

https://github.com/junegunn/vim-plug/issues/469#issuecomment-226965736
Junegunn Choi %!s(int64=9) %!d(string=hai) anos
pai
achega
460fbe82e0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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