From 4accc8a79c9b453744819b68b3e6509367ca1200 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 21 Jan 2009 23:03:54 +1300 Subject: [PATCH] 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 --- plugin/NERD_tree.vim | 3 +++ 1 file changed, 3 insertions(+) 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()