refactor TreeDirNode.reveal slightly

This commit is contained in:
Martin Grenfell
2015-11-16 09:35:31 +00:00
parent 449f2c77ed
commit 0b966aa23a
2 changed files with 12 additions and 6 deletions

View File

@@ -289,7 +289,9 @@ function! s:findAndRevealPath()
endif
endif
call g:NERDTree.CursorToTreeWin()
call b:NERDTreeRoot.reveal(p)
let node = b:NERDTreeRoot.reveal(p)
call b:NERDTree.render()
call node.putCursorHere(1,0)
if p.isUnixHiddenFile()
let g:NERDTreeShowHidden = showhidden