Merge pull request #12 from narfdotpl/cant-split-commits-into-separate-pull-requests-zomgwtfbbq

Fix window positions
This commit is contained in:
Steve Losh 2011-05-27 07:31:02 -07:00
commit 32019def8f

View File

@ -598,11 +598,19 @@ function! s:GundoClose()"{{{
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()"{{{