# HG changeset patch # User Sam Simmons # Date 1334295766 18000 # Node ID c3ae6b82a323dadd7766e16986035da96ffb02ed # Parent 8078f3e3ed0f8a954d83ab35f238881e9fce479a added public show/hide methods and matched toggle open/close method diff -r 8078f3e3ed0f -r c3ae6b82a323 autoload/gundo.vim --- 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"}}}