Fix reveal of hunks on CTRL-N

This commit is contained in:
Tim Pope 2019-02-13 21:01:19 -05:00
parent 02c26619c4
commit a489c6e1d3

View File

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