# HG changeset patch # User Steve Losh # Date 1287618397 14400 # Node ID a9beb6c8a1ddbb442be3a320f8b7e5156cc51ee1 # Parent 69dc4f1adff290b26c0fed84f4d0066d02abf8e6 Make the preview pane's height configurable. diff -r 69dc4f1adff2 -r a9beb6c8a1dd plugin/gundo.vim --- a/plugin/gundo.vim Wed Oct 20 19:43:22 2010 -0400 +++ b/plugin/gundo.vim Wed Oct 20 19:46:37 2010 -0400 @@ -46,6 +46,10 @@ let g:gundo_width = 45 endif"}}} +if !exists('g:gundo_preview_height')"{{{ + let g:gundo_preview_height = 15 +endif"}}} + "}}} "{{{ Movement @@ -158,7 +162,7 @@ exe "vertical resize " . g:gundo_width exe bufwinnr(bufnr('__Gundo_Preview__')) . "wincmd w" - exe "resize " . 15 + exe "resize " . g:gundo_preview_height exe a:backto . "wincmd w" endfunction"}}}