diff --git a/autoload/nerdtree.vim b/autoload/nerdtree.vim index 4032c50..618328e 100644 --- a/autoload/nerdtree.vim +++ b/autoload/nerdtree.vim @@ -127,12 +127,6 @@ endfunction " SECTION: View Functions {{{1 "============================================================ -" -" FUNCTION: nerdtree#chRoot(node) {{{2 -" changes the current root to the selected one -function! nerdtree#chRoot(node) - call s:chRoot(a:node) -endfunction "FUNCTION: nerdtree#closeTree() {{{2 "Closes the primary NERD tree window for this tab diff --git a/autoload/nerdtree/ui_glue.vim b/autoload/nerdtree/ui_glue.vim index 6058350..a5fdb16 100644 --- a/autoload/nerdtree/ui_glue.vim +++ b/autoload/nerdtree/ui_glue.vim @@ -157,7 +157,7 @@ function! nerdtree#ui_glue#chRootCwd() if cwd.str() == g:NERDTreeFileNode.GetRootForTab().path.str() return endif - call nerdtree#chRoot(g:NERDTreeDirNode.New(cwd)) + call s:chRoot(g:NERDTreeDirNode.New(cwd)) endfunction " FUNCTION: nnerdtree#ui_glue#clearBookmarks(bookmarks) {{{1 @@ -281,7 +281,7 @@ function! s:findAndRevealPath() call nerdtree#putCursorInTreeWin() endif let b:NERDTreeShowHidden = g:NERDTreeShowHidden - call nerdtree#chRoot(g:NERDTreeDirNode.New(p.getParent())) + call s:chRoot(g:NERDTreeDirNode.New(p.getParent())) else if !nerdtree#isTreeOpen() call g:NERDTreeCreator.TogglePrimary("") diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 6ad3cdc..1b02a31 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -194,7 +194,7 @@ endfunction function! NERDTreeCWD() call NERDTreeFocus() - call nerdtree#chRootCwd() + call nerdtree#ui_glue#chRootCwd() endfunction " SECTION: Post Source Actions {{{1 call nerdtree#postSourceActions()