mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-30 05:23:36 +08:00
Merge pull request #213 from cperl82/fixes
Fix s:Path.Resolve to it handles '/' properly
This commit is contained in:
commit
3a8310a60b
|
@ -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