fix a bug where :NERDTreeToggle was broken without :set hidden

This commit is contained in:
Martin Grenfell 2009-01-09 09:32:57 +13:00
parent b0950d1593
commit c8afb6d92d
2 changed files with 6 additions and 0 deletions

View File

@ -949,6 +949,9 @@ fridge for later ;)
==============================================================================
7. Changelog *NERDTreeChangelog*
3.0.1
- fix a bug where :NERDTreeToggle was broken unless 'hidden was set
3.0.0
- hijack netrw so that doing an :edit <directory> will put a NERD tree in
the window rather than a netrw browser. See :help 'NERDTreeHijackNetrw'

View File

@ -2931,6 +2931,9 @@ function! s:toggle(dir)
if !s:isTreeOpen()
call s:createTreeWin()
call s:restoreScreenState()
if !&hidden
call s:renderView()
endif
else
call s:closeTree()
endif