Merge pull request #12 from narfdotpl/cant-split-commits-into-separate-pull-requests-zomgwtfbbq
Fix window positions
This commit is contained in:
commit
32019def8f
@ -598,11 +598,19 @@ function! s:GundoClose()"{{{
|
|||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
function! s:GundoOpen()"{{{
|
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()
|
call s:GundoOpenPreview()
|
||||||
exe bufwinnr(g:gundo_target_n) . "wincmd w"
|
exe bufwinnr(g:gundo_target_n) . "wincmd w"
|
||||||
|
|
||||||
call s:GundoRenderGraph()
|
call s:GundoRenderGraph()
|
||||||
call s:GundoRenderPreview()
|
call s:GundoRenderPreview()
|
||||||
|
|
||||||
|
" Restore `splitbelow` value.
|
||||||
|
let &splitbelow = saved_splitbelow
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
function! s:GundoToggle()"{{{
|
function! s:GundoToggle()"{{{
|
||||||
|
Loading…
Reference in New Issue
Block a user