- Updated vital.

This commit is contained in:
Shougo Matsushita 2013-08-18 20:32:40 +09:00
parent d062862957
commit ce865813ef
3 changed files with 13 additions and 2 deletions

View File

@ -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])

View File

@ -1,3 +1,3 @@
de83b96
13055f8
Prelude