fix a bug when g:NERDTreeChDirMode==2
when the user activate the ../ (up a dir) line or hit U or U it wasnt changing vims CWD when NERDTreeChDirMode==2
This commit is contained in:
parent
7522cbf4f0
commit
4accc8a79c
@ -3774,7 +3774,10 @@ function! s:upDir(keepState)
|
|||||||
let b:NERDTreeRoot = newRoot
|
let b:NERDTreeRoot = newRoot
|
||||||
else
|
else
|
||||||
let b:NERDTreeRoot = b:NERDTreeRoot.parent
|
let b:NERDTreeRoot = b:NERDTreeRoot.parent
|
||||||
|
endif
|
||||||
|
|
||||||
|
if g:NERDTreeChDirMode == 2
|
||||||
|
exec 'cd ' . b:NERDTreeRoot.path.strForCd()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call s:renderView()
|
call s:renderView()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user