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