nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 0d62ffd5db98b5cedd35e6e2343fc028c2393a27
parent 510f890ee147812f45c31e397f27673f05a9159d
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Sat, 10 May 2008 18:29:20 +1200

bugfix for paths on windows

delete oPath.NewMinimal cos it sucks and there is no need for it. It
was causing a bug with oPath.Equals on account of it wasnt correctly
determining whether a path found with s:GetSelectedPath() was a dir or a
file.

Diffstat:
Mplugin/NERD_tree.vim | 17+++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -1078,18 +1078,6 @@ function! s:oPath.New(fullpath) dict
     return newPath
 endfunction
 
-"FUNCTION: oPath.NewMinimal() {{{3 
-function! s:oPath.NewMinimal(fullpath) dict
-    let newPath = copy(self)
-    let fullpath = s:oPath.WinToUnixPath(a:fullpath)
-
-    let newPath.pathSegments = split(fullpath, '/')
-    
-    let newPath.isDirectory = isdirectory(fullpath)
-
-    return newPath
-endfunction
-
 "FUNCTION: oPath.ReadInfoFromDisk(fullpath) {{{3 
 "
 "
@@ -1810,8 +1798,9 @@ function! s:GetPath(ln)
             endif
         endif
     endwhile
-    let curFile = dir . curFile
-    return s:oPath.NewMinimal(curFile)
+    let curFile = t:NERDTreeRoot.path.drive . dir . curFile
+    let toReturn = s:oPath.New(curFile)
+    return toReturn
 endfunction 
 
 "FUNCTION: s:GetSelectedDir() {{{2