update plug
This commit is contained in:
parent
e237437396
commit
7ecba11f72
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ function! plug#begin(...)
|
|||
else
|
||||
return s:err('Unable to determine plug home. Try calling plug#begin() with a path argument.')
|
||||
endif
|
||||
if fnamemodify(home, ':t') ==# 'plugin' && fnamemodify(home, ':h') ==# s:first_rtp
|
||||
return s:err('Invalid plug home. '.home.' is a standard Vim runtime path and is not allowed.')
|
||||
endif
|
||||
|
||||
let g:plug_home = home
|
||||
let g:plugs = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue