nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 3a8310a60bd165841e768d2569c98d40066c35df
parent 1dc3891f960c25aa3f23aa46f5afc8d41db38233
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Mon, 10 Dec 2012 12:26:44 -0800

Merge pull request #213 from cperl82/fixes

Fix s:Path.Resolve to it handles '/' properly
Diffstat:
Mplugin/NERD_tree.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2600,7 +2600,7 @@ endfunction
 "slash
 function! s:Path.Resolve(path)
     let tmp = resolve(a:path)
-    return tmp =~# '/$' ? substitute(tmp, '/$', '', '') : tmp
+    return tmp =~# '.\+/$' ? substitute(tmp, '/$', '', '') : tmp
 endfunction
 
 "FUNCTION: Path.readInfoFromDisk(fullpath) {{{3