mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
fix a bug with the Path#strForEditCmd() and relative paths
This commit is contained in:
@@ -1903,9 +1903,11 @@ function! s:Path.strForEditCmd()
|
|||||||
let cwd = tolower(getcwd())
|
let cwd = tolower(getcwd())
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let cwd = cwd . s:os_slash
|
||||||
|
|
||||||
"return a relative path if we can
|
"return a relative path if we can
|
||||||
if stridx(p, cwd) == 0
|
if stridx(p, cwd) == 0
|
||||||
let p = strpart(p, strlen(cwd)+1)
|
let p = strpart(p, strlen(cwd))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if p == ''
|
if p == ''
|
||||||
|
|||||||
Reference in New Issue
Block a user