# HG changeset patch # User Steve Losh # Date 1306506662 25200 # Node ID 2043d87230969829c6635cf9f591514438a83ef5 # Parent 8269dd71e3cdb57917d2664053d3cffbd314c400# Parent 0d92eaf03c6a607ebe021e0c2926b286a15534ff Merge pull request #12 from narfdotpl/cant-split-commits-into-separate-pull-requests-zomgwtfbbq Fix window positions diff -r 8269dd71e3cd -r 2043d8723096 plugin/gundo.vim --- a/plugin/gundo.vim Fri May 27 07:29:14 2011 -0700 +++ b/plugin/gundo.vim Fri May 27 07:31:02 2011 -0700 @@ -598,11 +598,19 @@ endfunction"}}} function! s:GundoOpen()"{{{ + " Save `splitbelow` value and set it to default to avoid problems with + " positioning new windows. + let saved_splitbelow = &splitbelow + let &splitbelow = 0 + call s:GundoOpenPreview() exe bufwinnr(g:gundo_target_n) . "wincmd w" call s:GundoRenderGraph() call s:GundoRenderPreview() + + " Restore `splitbelow` value. + let &splitbelow = saved_splitbelow endfunction"}}} function! s:GundoToggle()"{{{