From a1e7bc0b0181425c966208dd039252095810a12b Mon Sep 17 00:00:00 2001 From: marty Date: Sun, 13 Sep 2009 14:02:48 +1200 Subject: [PATCH] refactor away from Path.strForCd() (since it was removed earlier) --- plugin/NERD_tree.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 85bb4cf..1135c65 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -1797,9 +1797,9 @@ function! s:Path.cacheDisplayString() endfunction "FUNCTION: Path.changeToDir() {{{3 function! s:Path.changeToDir() - let dir = self.strForCd() + let dir = self.str({'format': 'Cd'}) if self.isDirectory ==# 0 - let dir = self.getParent().strForCd() + let dir = self.getParent().str({'format': 'Cd'}) endif try @@ -2428,7 +2428,7 @@ function! s:initNerdTree(name) "if instructed to, then change the vim CWD to the dir the NERDTree is "inited in if g:NERDTreeChDirMode != 0 - exec 'cd ' . path.strForCd() + call path.changeToDir() endif if s:treeExistsForTab() @@ -3927,7 +3927,7 @@ function! s:upDir(keepState) endif if g:NERDTreeChDirMode ==# 2 - exec 'cd ' . b:NERDTreeRoot.path.strForCd() + call b:NERDTreeRoot.path.changeToDir() endif call s:renderView()