From fb7f66dc475d3b9e9df97ebe21be426ed5c88715 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 10 May 2008 15:49:08 +1200 Subject: [PATCH] update oPath#Equals --- plugin/NERD_tree.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 3d021a7..c050397 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -1063,15 +1063,13 @@ endfunction "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 " "Args: "path: the other path obj to compare this with function! s:oPath.Equals(path) dict - let this = self.ChopTrailingSlash(self.Str(1)) - let that = self.ChopTrailingSlash(a:path.Str(1)) - return this == that + return self.Str(0) == a:path.Str(0) endfunction "FUNCTION: oPath.New() {{{3