mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Fix resizing of existing non-floating hunk preview window
This bug was introduced by 9784226 in #708. It had the effect of not
allowing an existing hunk preview window to increase in size for a
larger hunk (up to 'previewheight').
See #775.
This commit is contained in:
@@ -547,7 +547,8 @@ function! s:populate_hunk_preview_window(header, body)
|
||||
setlocal nomodified
|
||||
|
||||
normal! G$
|
||||
let height = min([winline(), &previewheight])
|
||||
let hunk_height = max([body_length, winline()])
|
||||
let height = min([hunk_height, &previewheight])
|
||||
execute 'resize' height
|
||||
1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user