From 2ed6524b9d39f7275e02f677d50a083a96c4afcc Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 10 May 2008 15:55:50 +1200 Subject: [PATCH] use oPath#StrForCd where appropriate --- plugin/NERD_tree.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index c050397..d0ef1c3 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -773,9 +773,9 @@ let s:oPath = {} let oPath = s:oPath "FUNCTION: oPath.ChangeToDir() {{{3 function! s:oPath.ChangeToDir() dict - let dir = self.Str(1) + let dir = self.StrForCd() if self.isDirectory == 0 - let dir = self.GetPathTrunk().Str(1) + let dir = self.GetPathTrunk().StrForCd() endif try @@ -1363,7 +1363,7 @@ function! s:InitNerdTree(dir) "if instructed to, then change the vim CWD to the dir the NERDTree is "inited in if g:NERDTreeChDirMode != 0 - exec 'cd ' . path.StrForOS(1) + exec 'cd ' . path.StrForCd() endif let t:treeShowHelp = 0