mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 19:33:50 -05:00
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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user