Make the preview pane's height configurable.

This commit is contained in:
Steve Losh 2010-10-20 19:46:37 -04:00
parent a2bc33b076
commit af4b6e67b9

View File

@ -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"}}}