From 192538c0a71eb9b20092733d0a17d3688bb7109d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 27 Jun 2019 23:09:34 -0400 Subject: [PATCH] Fix :Gstatus overscroll when already at bottom of document --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 916201b..ea49dd8 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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! \" endwhile endif