fix a bug where :NERDTreeToggle was broken without :set hidden
This commit is contained in:
parent
b0950d1593
commit
c8afb6d92d
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user