Skip to content

Commit 3a8310a

Browse files
committed
Merge pull request preservim#213 from cperl82/fixes
Fix s:Path.Resolve to it handles '/' properly
2 parents 1dc3891 + bb1390c commit 3a8310a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/NERD_tree.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,7 @@ endfunction
26002600
"slash
26012601
function! s:Path.Resolve(path)
26022602
let tmp = resolve(a:path)
2603-
return tmp =~# '/$' ? substitute(tmp, '/$', '', '') : tmp
2603+
return tmp =~# '.\+/$' ? substitute(tmp, '/$', '', '') : tmp
26042604
endfunction
26052605

26062606
"FUNCTION: Path.readInfoFromDisk(fullpath) {{{3

0 commit comments

Comments
 (0)