nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit fb7f66dc475d3b9e9df97ebe21be426ed5c88715
parent dcf9e956a77a0090f3e67dcd609c9c9b5e788f38
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Sat, 10 May 2008 15:49:08 +1200

update oPath#Equals

Diffstat:
Mplugin/NERD_tree.vim | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git 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