From a489c6e1d3fc265242fabfd171021b0ea02dacf8 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 13 Feb 2019 21:01:19 -0500 Subject: [PATCH] Fix reveal of hunks on CTRL-N --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index f8c066f..964584c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2071,7 +2071,7 @@ endfunction function! s:StageReveal(...) abort let begin = a:0 ? a:1 : line('.') if getline(begin) =~# '^@' - let end = line(begin) + 1 + let end = begin + 1 while getline(end) =~# '^[ \+-]' let end += 1 endwhile