mirror of
https://github.com/preservim/nerdtree.git
synced 2025-03-01 03:06:43 +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…
x
Reference in New Issue
Block a user