Skip to content

Commit

Permalink
use oPath#StrForCd where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Grenfell committed May 10, 2008
1 parent fb7f66d commit 2ed6524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/NERD_tree.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ed6524

Please sign in to comment.