mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-23 02:45:56 +08:00
use oPath#StrForCd where appropriate
This commit is contained in:
parent
fb7f66dc47
commit
2ed6524b9d
|
@ -773,9 +773,9 @@ let s:oPath = {}
|
||||||
let oPath = s:oPath
|
let oPath = s:oPath
|
||||||
"FUNCTION: oPath.ChangeToDir() {{{3
|
"FUNCTION: oPath.ChangeToDir() {{{3
|
||||||
function! s:oPath.ChangeToDir() dict
|
function! s:oPath.ChangeToDir() dict
|
||||||
let dir = self.Str(1)
|
let dir = self.StrForCd()
|
||||||
if self.isDirectory == 0
|
if self.isDirectory == 0
|
||||||
let dir = self.GetPathTrunk().Str(1)
|
let dir = self.GetPathTrunk().StrForCd()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -1363,7 +1363,7 @@ function! s:InitNerdTree(dir)
|
||||||
"if instructed to, then change the vim CWD to the dir the NERDTree is
|
"if instructed to, then change the vim CWD to the dir the NERDTree is
|
||||||
"inited in
|
"inited in
|
||||||
if g:NERDTreeChDirMode != 0
|
if g:NERDTreeChDirMode != 0
|
||||||
exec 'cd ' . path.StrForOS(1)
|
exec 'cd ' . path.StrForCd()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let t:treeShowHelp = 0
|
let t:treeShowHelp = 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user