From 1c08146224885004be1009b50ca6da5d4337cc90 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 29 Oct 2014 11:20:58 +0000 Subject: [PATCH] apply @mixvin's windows path fix at the top of the method instead --- lib/nerdtree/path.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/nerdtree/path.vim b/lib/nerdtree/path.vim index 4cdf1a3..00fc7ae 100644 --- 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