mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -05:00
Improve comment.
This commit is contained in:
@@ -171,8 +171,8 @@ function! s:upsert_new_gitgutter_signs(bufnr, modified_lines) abort
|
|||||||
let old_gitgutter_signs = gitgutter#utility#getbufvar(a:bufnr, 'gitgutter_signs')
|
let old_gitgutter_signs = gitgutter#utility#getbufvar(a:bufnr, 'gitgutter_signs')
|
||||||
|
|
||||||
" Handle special case where the first line is the site of two hunks:
|
" Handle special case where the first line is the site of two hunks:
|
||||||
" lines deleted above at the start of the file, and lines deleted below from
|
" lines deleted above at the start of the file, and lines deleted
|
||||||
" the (new) second line down.
|
" immediately below.
|
||||||
if a:modified_lines[0:1] == [[1, 'removed_first_line'], [1, 'removed']]
|
if a:modified_lines[0:1] == [[1, 'removed_first_line'], [1, 'removed']]
|
||||||
let modified_lines = [[1, 'removed_above_and_below']] + a:modified_lines[2:]
|
let modified_lines = [[1, 'removed_above_and_below']] + a:modified_lines[2:]
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user