nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 8164fa09d3ef5c092ed99ec63c8332df0fb71e1b
parent 5e506017886f80c126a54498ec22079b127209d9
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Fri, 23 Jan 2009 23:43:47 +1300

fix a bug with the Path#strForEditCmd() and relative paths

Diffstat:
Mplugin/NERD_tree.vim | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -1903,9 +1903,11 @@ function! s:Path.strForEditCmd()
         let cwd = tolower(getcwd())
     endif
 
+    let cwd = cwd . s:os_slash
+
     "return a relative path if we can
     if stridx(p, cwd) == 0
-        let p = strpart(p, strlen(cwd)+1)
+        let p = strpart(p, strlen(cwd))
     endif
 
     if p == ''