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
|
"return a relative path if we can
|
||||||
let isRelative = 0
|
let isRelative = 0
|
||||||
if nerdtree#runningWindows()
|
if nerdtree#runningWindows()
|
||||||
|
let p = self.str()
|
||||||
let isRelative = stridx(tolower(p), tolower(cwd)) == 0
|
let isRelative = stridx(tolower(p), tolower(cwd)) == 0
|
||||||
else
|
else
|
||||||
let isRelative = stridx(p, cwd) == 0
|
let isRelative = stridx(p, cwd) == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user