mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23: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) =~# '^[ \+-]'
|
||||
let end += 1
|
||||
endwhile
|
||||
while end > line('w$') && line('.') > line('w0') + &scrolloff
|
||||
while line('w$') > line('$') && end > line('w$') && line('.') > line('w0') + &scrolloff
|
||||
execute "normal! \<C-E>"
|
||||
endwhile
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user