commit 1c08146224885004be1009b50ca6da5d4337cc90
parent cd8d87fa5734eeaa5d8ac7e33d4c9c33de16db51
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date: Wed, 29 Oct 2014 11:20:58 +0000
apply @mixvin's windows path fix at the top of the method instead
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/nerdtree/path.vim b/lib/nerdtree/path.vim
@@ -652,13 +652,12 @@ endfunction
"Return: the string for this path that is suitable to be used with the :edit
"command
function! s:Path._strForEdit()
- let p = escape(self.str({'format': 'UI'}), self._escChars())
+ let p = escape(self.str(), self._escChars())
let cwd = getcwd() . s:Path.Slash()
"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