mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-23 14:56:19 +08:00
Fix opening file path, in Windows
This commit is contained in:
parent
4f1e6ecb05
commit
cd8d87fa57
|
@ -658,6 +658,7 @@ function! s:Path._strForEdit()
|
|||
"return a relative path if we can
|
||||
let isRelative = 0
|
||||
if nerdtree#runningWindows()
|
||||
let p = self.str()
|
||||
let isRelative = stridx(tolower(p), tolower(cwd)) == 0
|
||||
else
|
||||
let isRelative = stridx(p, cwd) == 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user