- Updated vital.
This commit is contained in:
parent
d062862957
commit
ce865813ef
@ -82,7 +82,7 @@ function! s:_import(name, scripts)
|
||||
endfunction
|
||||
|
||||
function! s:_get_module_path(name)
|
||||
if filereadable(a:name)
|
||||
if s:_is_absolute_path(a:name) && filereadable(a:name)
|
||||
return s:_unify_path(a:name)
|
||||
endif
|
||||
if a:name ==# ''
|
||||
@ -129,6 +129,17 @@ else
|
||||
endfunction
|
||||
endif
|
||||
|
||||
" Copy from System.Filepath
|
||||
if has('win16') || has('win32') || has('win64')
|
||||
function! s:_is_absolute_path(path)
|
||||
return a:path =~? '^[a-z]:[/\\]'
|
||||
endfunction
|
||||
else
|
||||
function! s:_is_absolute_path(path)
|
||||
return a:path[0] ==# '/'
|
||||
endfunction
|
||||
endif
|
||||
|
||||
function! s:_build_module(sid)
|
||||
if has_key(s:loaded, a:sid)
|
||||
return copy(s:loaded[a:sid])
|
@ -1,3 +1,3 @@
|
||||
de83b96
|
||||
13055f8
|
||||
|
||||
Prelude
|
||||
|
Loading…
Reference in New Issue
Block a user