commit bb1390c0c7bf85ade6e119b69824501bf9db4555
parent 1dc3891f960c25aa3f23aa46f5afc8d41db38233
Author: Chris Perl <chris.perl@gmail.com>
Date: Mon, 10 Dec 2012 14:44:01 -0500
Fix s:Path.Resolve to it handles '/' properly
Diffstat:
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