fix previewing of directory nodes

Previously if we used the gi/gs mappings on a dir node/bookmark the
cursor would end up in the new window. Now it stays in the current
window as expected
This commit is contained in:
Martin Grenfell 2012-02-16 16:31:50 +00:00
parent 7e7e761d7f
commit aa1e7d642f

View File

@ -2074,6 +2074,10 @@ function! s:Opener._openDirectory(node)
call s:initNerdTreeInPlace(a:node.path.str())
endif
endif
if self._stay
call self._restoreCursorPos()
endif
endfunction
"FUNCTION: Opener._previousWindow() {{{3