mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Fix :Gstatus overscroll when already at bottom of document
This commit is contained in:
@@ -2289,7 +2289,7 @@ function! s:StageReveal(...) abort
|
|||||||
while getline(end) =~# '^[ \+-]'
|
while getline(end) =~# '^[ \+-]'
|
||||||
let end += 1
|
let end += 1
|
||||||
endwhile
|
endwhile
|
||||||
while end > line('w$') && line('.') > line('w0') + &scrolloff
|
while line('w$') > line('$') && end > line('w$') && line('.') > line('w0') + &scrolloff
|
||||||
execute "normal! \<C-E>"
|
execute "normal! \<C-E>"
|
||||||
endwhile
|
endwhile
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user