# HG changeset patch # User Steve Losh # Date 1338672052 14400 # Node ID f7c67d91b847220cd34f2f0eb1aa38121227f888 # Parent 43ea418b11f7f78aae0e60229548f68400fc89b8# Parent c3ae6b82a323dadd7766e16986035da96ffb02ed Merge. diff -r 43ea418b11f7 -r f7c67d91b847 autoload/gundo.vim --- 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"}}}