fix a bug from recent refactoring RE some NERDTreeCWD

This commit is contained in:
Martin Grenfell 2014-07-14 09:41:56 +01:00
parent 2f552e116d
commit 0c045d85ea
3 changed files with 3 additions and 9 deletions

View File

@ -127,12 +127,6 @@ endfunction
" SECTION: View Functions {{{1 " 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 "FUNCTION: nerdtree#closeTree() {{{2
"Closes the primary NERD tree window for this tab "Closes the primary NERD tree window for this tab

View File

@ -157,7 +157,7 @@ function! nerdtree#ui_glue#chRootCwd()
if cwd.str() == g:NERDTreeFileNode.GetRootForTab().path.str() if cwd.str() == g:NERDTreeFileNode.GetRootForTab().path.str()
return return
endif endif
call nerdtree#chRoot(g:NERDTreeDirNode.New(cwd)) call s:chRoot(g:NERDTreeDirNode.New(cwd))
endfunction endfunction
" FUNCTION: nnerdtree#ui_glue#clearBookmarks(bookmarks) {{{1 " FUNCTION: nnerdtree#ui_glue#clearBookmarks(bookmarks) {{{1
@ -281,7 +281,7 @@ function! s:findAndRevealPath()
call nerdtree#putCursorInTreeWin() call nerdtree#putCursorInTreeWin()
endif endif
let b:NERDTreeShowHidden = g:NERDTreeShowHidden let b:NERDTreeShowHidden = g:NERDTreeShowHidden
call nerdtree#chRoot(g:NERDTreeDirNode.New(p.getParent())) call s:chRoot(g:NERDTreeDirNode.New(p.getParent()))
else else
if !nerdtree#isTreeOpen() if !nerdtree#isTreeOpen()
call g:NERDTreeCreator.TogglePrimary("") call g:NERDTreeCreator.TogglePrimary("")

View File

@ -194,7 +194,7 @@ endfunction
function! NERDTreeCWD() function! NERDTreeCWD()
call NERDTreeFocus() call NERDTreeFocus()
call nerdtree#chRootCwd() call nerdtree#ui_glue#chRootCwd()
endfunction endfunction
" SECTION: Post Source Actions {{{1 " SECTION: Post Source Actions {{{1
call nerdtree#postSourceActions() call nerdtree#postSourceActions()