mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
@@ -545,9 +545,7 @@ function! s:populate_hunk_preview_window(header, body)
|
|||||||
call setline(1, a:body)
|
call setline(1, a:body)
|
||||||
setlocal nomodified
|
setlocal nomodified
|
||||||
|
|
||||||
normal! G$
|
let [_, height] = s:screen_lines(a:body)
|
||||||
let hunk_height = max([len(a:body), winline()])
|
|
||||||
let height = min([hunk_height, &previewheight])
|
|
||||||
execute 'resize' height
|
execute 'resize' height
|
||||||
1
|
1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user