fix a bug when doing :NERDTreeMirror without 'hidden set

This commit is contained in:
Martin Grenfell 2009-01-09 15:23:57 +13:00
parent 2f4d1b93e8
commit 3d2bf2d9ac
2 changed files with 4 additions and 0 deletions

View File

@ -952,6 +952,7 @@ The latest dev versions are on github
3.0.1
- fix a bug where :NERDTreeToggle was broken unless 'hidden was set
- fix a bug with :NERDTreeMirror when 'hidden wasnt set
- make the q mapping work with secondary (:e <dir> style) nerd trees
- more insane refactoring and doc updates

View File

@ -2163,6 +2163,9 @@ function! s:initNerdTreeMirror()
let t:NERDTreeBufName = bufferName
call s:createTreeWin()
exec 'buffer ' . bufferName
if !&hidden
call s:renderView()
endif
endfunction
" FUNCTION: s:tabpagevar(tabnr, var) {{{2
function! s:tabpagevar(tabnr, var)