From 94e085f1a2d8140df26d3917f1d95ffd5ab69010 Mon Sep 17 00:00:00 2001 From: marty Date: Fri, 9 Oct 2009 21:27:48 +1300 Subject: [PATCH] really fix the window state restoring --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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