Display unambiguous sign when hunks overlap.

See #556.
This commit is contained in:
Andy Stewart
2018-10-18 09:45:55 +01:00
parent 622193a625
commit 89c34f74cb
5 changed files with 32 additions and 1 deletions

View File

@@ -93,6 +93,9 @@ function! s:current_hunk() abort
return current_hunk
endfunction
" A line can be in 0 or 1 hunks, with the following exception: when the first
" line(s) of a file has been deleted, and the new second line (and
" optionally below) has been deleted, the new first line is in two hunks.
function! gitgutter#hunk#cursor_in_hunk(hunk) abort
let current_line = line('.')