mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Fix reveal of hunks on CTRL-N
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user