f7c67d91b847

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 02 Jun 2012 17:20:52 -0400
parents 43ea418b11f7 (current diff) c3ae6b82a323 (diff)
children b7baa0384d76
branches/tags (none)
files

Changes

--- a/autoload/gundo.vim	Sat Apr 21 14:37:24 2012 +0100
+++ b/autoload/gundo.vim	Sat Jun 02 17:20:52 2012 -0400
@@ -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"}}}