fix a bug from recent refactoring RE some NERDTreeCWD
This commit is contained in:
parent
2f552e116d
commit
0c045d85ea
@ -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
|
||||
|
@ -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("")
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user