mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 18:30:45 +08:00
Fix s:Path.Resolve to it handles '/' properly
This commit is contained in:
parent
1dc3891f96
commit
bb1390c0c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user