Fix s:Path.Resolve to it handles '/' properly

This commit is contained in:
Chris Perl 2012-12-10 14:44:01 -05:00
parent 1dc3891f96
commit bb1390c0c7

View File

@ -2600,7 +2600,7 @@ endfunction
"slash
function! s:Path.Resolve(path)
let tmp = resolve(a:path)
return tmp =~# '/$' ? substitute(tmp, '/$', '', '') : tmp
return tmp =~# '.\+/$' ? substitute(tmp, '/$', '', '') : tmp
endfunction
"FUNCTION: Path.readInfoFromDisk(fullpath) {{{3