mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Fix s:Path.Resolve to it handles '/' properly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user