move TreeFileNode.makeRoot() to NERDTree.changeRoot(node)

This commit is contained in:
Martin Grenfell
2015-11-16 13:17:59 +00:00
parent 71ee64fed7
commit cedb40b4f5
5 changed files with 25 additions and 29 deletions

View File

@@ -268,9 +268,7 @@ function! s:Opener._openDirectory(node)
else
call self._gotoTargetWin()
if empty(self._where)
call a:node.makeRoot()
call b:NERDTree.render()
call a:node.putCursorHere(0, 0)
call b:NERDTree.changeRoot(a:node)
elseif self._where == 't'
call g:NERDTreeCreator.CreateTabTree(a:node.path.str())
else