mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Fix after
directory and Plugfile
on Windows
This commit is contained in:
parent
8885b1086f
commit
42a42e7e71
7
plug.vim
7
plug.vim
@ -193,8 +193,9 @@ endfunction
|
|||||||
|
|
||||||
function! s:add_rtp(rtp)
|
function! s:add_rtp(rtp)
|
||||||
execute "set rtp^=".s:esc(a:rtp)
|
execute "set rtp^=".s:esc(a:rtp)
|
||||||
if isdirectory(a:rtp.'after')
|
let after = globpath(a:rtp, 'after')
|
||||||
execute "set rtp+=".s:esc(a:rtp.'after')
|
if isdirectory(after)
|
||||||
|
execute "set rtp+=".s:esc(after)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -424,7 +425,7 @@ function! s:extend(names)
|
|||||||
try
|
try
|
||||||
command! -nargs=+ Plug call s:add(0, <args>)
|
command! -nargs=+ Plug call s:add(0, <args>)
|
||||||
for name in a:names
|
for name in a:names
|
||||||
let plugfile = s:rtp(g:plugs[name]) . s:plug_file
|
let plugfile = globpath(s:rtp(g:plugs[name]), s:plug_file)
|
||||||
if filereadable(plugfile)
|
if filereadable(plugfile)
|
||||||
execute "source ". s:esc(plugfile)
|
execute "source ". s:esc(plugfile)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user