Fix :Gstatus overscroll when already at bottom of document

This commit is contained in:
Tim Pope
2019-06-27 23:09:34 -04:00
parent 0f20c35b62
commit 192538c0a7

View File

@@ -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