diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 1d30077..3165838 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -3453,12 +3453,13 @@ endfunction "FUNCTION: s:previewNode() {{{2 function! s:previewNode(openNewWin) + let currentBuf = bufnr(".") if a:openNewWin call s:openEntrySplit(1) else call s:activateNode(1) end - call s:putCursorInTreeWin() + exec bufwinnr(currentBuf) . "wincmd w" endfunction " FUNCTION: s:revealBookmark(name) {{{2