diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index ea65a72..858c61d 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -3351,10 +3351,10 @@ function! s:toggle(dir) if s:treeExistsForTab() if !s:isTreeOpen() call s:createTreeWin() - call s:restoreScreenState() if !&hidden call s:renderView() endif + call s:restoreScreenState() else call s:closeTree() endif