Fix reveal of hunks on CTRL-N
This commit is contained in:
parent
02c26619c4
commit
a489c6e1d3
@ -2071,7 +2071,7 @@ endfunction
|
|||||||
function! s:StageReveal(...) abort
|
function! s:StageReveal(...) abort
|
||||||
let begin = a:0 ? a:1 : line('.')
|
let begin = a:0 ? a:1 : line('.')
|
||||||
if getline(begin) =~# '^@'
|
if getline(begin) =~# '^@'
|
||||||
let end = line(begin) + 1
|
let end = begin + 1
|
||||||
while getline(end) =~# '^[ \+-]'
|
while getline(end) =~# '^[ \+-]'
|
||||||
let end += 1
|
let end += 1
|
||||||
endwhile
|
endwhile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user