From cd8d87fa5734eeaa5d8ac7e33d4c9c33de16db51 Mon Sep 17 00:00:00 2001 From: mixvin Date: Sun, 10 Feb 2013 13:52:23 +0400 Subject: [PATCH] Fix opening file path, in Windows --- lib/nerdtree/path.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nerdtree/path.vim b/lib/nerdtree/path.vim index 5de1dfe..4cdf1a3 100644 --- a/lib/nerdtree/path.vim +++ b/lib/nerdtree/path.vim @@ -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