mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
fix for the preview mappings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user