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:
Martin Grenfell 2009-01-21 23:03:54 +13:00
parent 7522cbf4f0
commit 4accc8a79c

View File

@ -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()