fix for the preview mappings

This commit is contained in:
Martin Grenfell
2008-12-14 00:38:13 +13:00
parent 3e5faf9c56
commit b2c56e94c9

View File

@@ -3453,12 +3453,13 @@ endfunction
"FUNCTION: s:previewNode() {{{2 "FUNCTION: s:previewNode() {{{2
function! s:previewNode(openNewWin) function! s:previewNode(openNewWin)
let currentBuf = bufnr(".")
if a:openNewWin if a:openNewWin
call s:openEntrySplit(1) call s:openEntrySplit(1)
else else
call s:activateNode(1) call s:activateNode(1)
end end
call s:putCursorInTreeWin() exec bufwinnr(currentBuf) . "wincmd w"
endfunction endfunction
" FUNCTION: s:revealBookmark(name) {{{2 " FUNCTION: s:revealBookmark(name) {{{2