From bb1390c0c7bf85ade6e119b69824501bf9db4555 Mon Sep 17 00:00:00 2001 From: Chris Perl Date: Mon, 10 Dec 2012 14:44:01 -0500 Subject: [PATCH] Fix s:Path.Resolve to it handles '/' properly --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 34f7fb7..aefb56d 100644 --- 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