Fix opening file path, in Windows

This commit is contained in:
mixvin 2013-02-10 13:52:23 +04:00 committed by Martin Grenfell
parent 4f1e6ecb05
commit cd8d87fa57

View File

@ -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