Make the preview pane's height configurable.
This commit is contained in:
parent
a2bc33b076
commit
af4b6e67b9
@ -46,6 +46,10 @@ if !exists('g:gundo_width')"{{{
|
|||||||
let g:gundo_width = 45
|
let g:gundo_width = 45
|
||||||
endif"}}}
|
endif"}}}
|
||||||
|
|
||||||
|
if !exists('g:gundo_preview_height')"{{{
|
||||||
|
let g:gundo_preview_height = 15
|
||||||
|
endif"}}}
|
||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"{{{ Movement
|
"{{{ Movement
|
||||||
@ -158,7 +162,7 @@ function! s:GundoResizeBuffers(backto)"{{{
|
|||||||
exe "vertical resize " . g:gundo_width
|
exe "vertical resize " . g:gundo_width
|
||||||
|
|
||||||
exe bufwinnr(bufnr('__Gundo_Preview__')) . "wincmd w"
|
exe bufwinnr(bufnr('__Gundo_Preview__')) . "wincmd w"
|
||||||
exe "resize " . 15
|
exe "resize " . g:gundo_preview_height
|
||||||
|
|
||||||
exe a:backto . "wincmd w"
|
exe a:backto . "wincmd w"
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
Loading…
Reference in New Issue
Block a user