added public show/hide methods and matched toggle open/close method
    
        | author | Sam Simmons <sam@samiconductor.com> | 
    
        | date | Fri, 13 Apr 2012 00:42:46 -0500 | 
    
    
        | parents | 8078f3e3ed0f | 
    
        | children | f7c67d91b847 | 
    
        | branches/tags | (none) | 
    
        | files | autoload/gundo.vim | 
Changes
    
--- a/autoload/gundo.vim	Thu Feb 16 21:20:28 2012 +0900
+++ b/autoload/gundo.vim	Fri Apr 13 00:42:46 2012 -0500
@@ -322,11 +322,17 @@
 endfunction"}}}
 
 function! s:GundoShow()"{{{
-    call s:GundoOpen()
+    if !s:GundoIsVisible()
+        let g:gundo_target_n = bufnr('')
+        let g:gundo_target_f = @%
+        call s:GundoOpen()
+    endif
 endfunction"}}}
 
 function! s:GundoHide()"{{{
-    call s:GundoClose()
+    if s:GundoIsVisible()
+        call s:GundoClose()
+    endif
 endfunction"}}}
 
 "}}}
@@ -442,6 +448,14 @@
     call s:GundoToggle()
 endfunction"}}}
 
+function! gundo#GundoShow()"{{{
+    call s:GundoShow()
+endfunction"}}}
+
+function! gundo#GundoHide()"{{{
+    call s:GundoHide()
+endfunction"}}}
+
 function! gundo#GundoRenderGraph()"{{{
     call s:GundoRenderGraph()
 endfunction"}}}