update oPath#Equals

This commit is contained in:
Martin Grenfell 2008-05-10 15:49:08 +12:00
parent dcf9e956a7
commit fb7f66dc47

View File

@ -1063,15 +1063,13 @@ endfunction
"FUNCTION: oPath.Equals() {{{3 "FUNCTION: oPath.Equals() {{{3
" "
"Determines whether 2 path objecs are "equal". "Determines whether 2 path objects are "equal".
"They are equal if the paths they represent are the same "They are equal if the paths they represent are the same
" "
"Args: "Args:
"path: the other path obj to compare this with "path: the other path obj to compare this with
function! s:oPath.Equals(path) dict function! s:oPath.Equals(path) dict
let this = self.ChopTrailingSlash(self.Str(1)) return self.Str(0) == a:path.Str(0)
let that = self.ChopTrailingSlash(a:path.Str(1))
return this == that
endfunction endfunction
"FUNCTION: oPath.New() {{{3 "FUNCTION: oPath.New() {{{3