nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit b2c56e94c9761659e7e1ac84aea6b5934532ee41
parent 3e5faf9c56f02d9bbf1d383c8c0a2a137e91202f
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Sun, 14 Dec 2008 00:38:13 +1300

fix for the preview mappings

Diffstat:
Mplugin/NERD_tree.vim | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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