Merge pull request #213 from cperl82/fixes

Fix s:Path.Resolve to it handles '/' properly
This commit is contained in:
Martin Grenfell 2012-12-10 12:26:44 -08:00
commit 3a8310a60b

View File

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