diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 2f8f586..4d470c1 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -3774,7 +3774,10 @@ function! s:upDir(keepState) let b:NERDTreeRoot = newRoot else let b:NERDTreeRoot = b:NERDTreeRoot.parent + endif + if g:NERDTreeChDirMode == 2 + exec 'cd ' . b:NERDTreeRoot.path.strForCd() endif call s:renderView()